Fix Animeunity e Dreamsub:

N.B. se Dreamsub non funziona cancellare le 2 righe:
quality e servers relative a dreamsub nel file
addon_data/plugin.video.kod/settings_channels/autoplay_data.json
This commit is contained in:
Alhaziel01
2020-01-19 10:50:44 +01:00
parent ac1d59a35b
commit f372c834f1
2 changed files with 7 additions and 5 deletions
+4 -3
View File
@@ -86,10 +86,11 @@ def peliculas(item):
@support.scrape
def episodios(item):
# debug = True
data = item.data
anime = True
pagination = 50
patron = r'<a href="([^"]+)" class="\D+ep-button">(?P<episode>\d+)'
patron = r'<a href="(?P<url>[^"]+)" class="\D+ep-button">(?P<episode>\d+)'
def itemHook(item):
item.title = item.title + support.typo(item.fulltitle,'-- bold')
return item
@@ -99,14 +100,14 @@ def episodios(item):
def findvideos(item):
support.log()
html = support.match(item, patron=r'TIPO:\s*</b>\s*([A-Za-z]+)')
if html.match == 'TV':
if html.match == 'TV' and item.contentType != 'episode':
item.contentType = 'tvshow'
item.data = html.data
return episodios(item)
else:
itemlist = []
if item.contentType != 'episode': item.contentType = 'movie'
video = support.match(html.data, patron=r'<source src="([^"]+)"').match
item.contentType = 'movie'
itemlist.append(
support.Item(
channel=item.channel,