fix apri nel browser su alcuni canali

This commit is contained in:
marco
2020-10-24 13:17:59 +02:00
parent 11c943f917
commit c70aabdb33
3 changed files with 21 additions and 18 deletions
+6 -5
View File
@@ -52,13 +52,14 @@ def episodios(item):
seasons = support.match(item, patron=r'<option value="(\d+)"[^>]*>\D+(\d+)').matches
patronBlock = r'</select><div style="clear:both"></div></h2>(?P<block>.*?)<div id="trailer" class="tab">'
patron = r'(?:<div class="list (?:active)?")?\s*<a data-id="\d+(?:[ ](?P<lang>[SuUbBiItTaA\-]+))?"(?P<other>[^>]+)>.*?Episodio [0-9]+\s?(?:<br>(?P<title>[^<]+))?.*?Stagione (?P<season>[0-9]+) , Episodio - (?P<episode>[0-9]+).*?<(?P<url>.*?<iframe)'
def itemHook(item):
def itemHook(i):
for value, season in seasons:
info(value)
info(season)
item.title = item.title.replace(value+'x',season+'x')
item.url += '\n' + item.other
return item
i.title = i.title.replace(value+'x',season+'x')
i.other += '\n' + i.url
i.url = item.url
return i
return locals()
@@ -110,7 +111,7 @@ def newest(categoria):
def findvideos(item):
info(item)
if item.args != 'update':
return support.server(item, data=item.url)
return support.server(item, data=item.other)
else:
itemlist = []
item.infoLabels['mediatype'] = 'episode'