fix apri nel browser su alcuni canali
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user