fix toonitalia and uprot
This commit is contained in:
@@ -71,7 +71,7 @@ def check(item):
|
|||||||
def episodios(item):
|
def episodios(item):
|
||||||
anime = True
|
anime = True
|
||||||
item.contentType = 'tvshow'
|
item.contentType = 'tvshow'
|
||||||
patron = r'>\s*(?:(?P<season>\d+)(?:×|x|×))?(?:0*)?(?P<episode>\d+)(?:\s+–\s+)?[ –]+(?P<title>[^<]+)'
|
patron = r'>\s*(?:(?P<season>\d+)(?:×|x|×))?(?P<episode>\d+)(?:\s+–\s+)?[ –]+(?P<title>[^<]+)[ –]+<a (?P<data>.*?)(?:<br|</p)'
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -709,7 +709,7 @@ class UnshortenIt(object):
|
|||||||
return httptools.downloadpage(uri, only_headers=True, follow_redirects=False).headers.get('location', uri), 200
|
return httptools.downloadpage(uri, only_headers=True, follow_redirects=False).headers.get('location', uri), 200
|
||||||
|
|
||||||
def _unshorten_uprot(self, uri):
|
def _unshorten_uprot(self, uri):
|
||||||
html = httptools.downloadpage(uri, cloudscraper=True).data
|
html = httptools.downloadpage(uri, cloudscraper=False).data
|
||||||
link = scrapertools.find_single_match(html, r'--></button></[a|div]?>.+?<a[^>]+href="([^"]+)">')
|
link = scrapertools.find_single_match(html, r'--></button></[a|div]?>.+?<a[^>]+href="([^"]+)">')
|
||||||
if link != uri:
|
if link != uri:
|
||||||
return link, 200
|
return link, 200
|
||||||
|
|||||||
Reference in New Issue
Block a user