fix cinemalibero
This commit is contained in:
@@ -14,7 +14,11 @@ list_quality = ['default']
|
|||||||
|
|
||||||
def findhost():
|
def findhost():
|
||||||
permUrl = httptools.downloadpage('https://www.cinemalibero.online/', follow_redirects=False).headers
|
permUrl = httptools.downloadpage('https://www.cinemalibero.online/', follow_redirects=False).headers
|
||||||
return 'https://www.' + permUrl['location'].replace('https://www.google.com/search?q=site:', '')
|
import urlparse
|
||||||
|
p = list(urlparse.urlparse(permUrl['location'].replace('https://www.google.com/search?q=site:', '')))
|
||||||
|
if not p[0]:
|
||||||
|
p[0] = 'https'
|
||||||
|
return urlparse.urlunparse(p)
|
||||||
|
|
||||||
host = config.get_channel_url(findhost)
|
host = config.get_channel_url(findhost)
|
||||||
headers = [['Referer', host]]
|
headers = [['Referer', host]]
|
||||||
|
|||||||
+2
-1
@@ -515,7 +515,8 @@ class UnshortenIt(object):
|
|||||||
|
|
||||||
return uri, r.code if r else 200
|
return uri, r.code if r else 200
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return uri, str(e)
|
logger.error(e)
|
||||||
|
return uri, 0
|
||||||
|
|
||||||
|
|
||||||
def _unshorten_linkup(self, uri):
|
def _unshorten_linkup(self, uri):
|
||||||
|
|||||||
Reference in New Issue
Block a user