Fix AnimeAltadefinizione
This commit is contained in:
@@ -97,6 +97,7 @@ def peliculas(item):
|
|||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
|
anime = True
|
||||||
pagination = int(perpage)
|
pagination = int(perpage)
|
||||||
patron = epPatron
|
patron = epPatron
|
||||||
return locals()
|
return locals()
|
||||||
@@ -107,18 +108,19 @@ def findvideos(item):
|
|||||||
if item.contentType == 'movie':
|
if item.contentType == 'movie':
|
||||||
matches = support.match(item, patron=epPatron).matches
|
matches = support.match(item, patron=epPatron).matches
|
||||||
for title, url in matches:
|
for title, url in matches:
|
||||||
get_video_list(url, title, itemlist)
|
# support.dbg()
|
||||||
|
get_video_list(item, url, title, itemlist)
|
||||||
else:
|
else:
|
||||||
get_video_list(item.url, support.config.get_localized_string(30137), itemlist)
|
get_video_list(item, item.url, support.config.get_localized_string(30137), itemlist)
|
||||||
return support.server(item, itemlist=itemlist)
|
return support.server(item, itemlist=itemlist)
|
||||||
|
|
||||||
|
|
||||||
def get_video_list(url, title, itemlist):
|
def get_video_list(item, url, title, itemlist):
|
||||||
from requests import get
|
from requests import get
|
||||||
if not url.startswith('http'): url = host + url
|
if not url.startswith('http'): url = host + url
|
||||||
|
|
||||||
url = support.match(get(url).url, string=True, patron=r'file=([^$]+)').match
|
url = support.match(get(url).url, string=True, patron=r'file=([^$]+)').match
|
||||||
if 'http' not in url: url = 'http://' + url
|
if 'http' not in url: url = 'http://' + url
|
||||||
itemlist.append(support.Item(title=title, url=url, server='directo', action='play'))
|
itemlist.append(item.clone(title=title, url=url, server='directo', action='play'))
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
Reference in New Issue
Block a user