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:
@@ -86,10 +86,11 @@ def peliculas(item):
|
|||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
|
# debug = True
|
||||||
data = item.data
|
data = item.data
|
||||||
anime = True
|
anime = True
|
||||||
pagination = 50
|
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):
|
def itemHook(item):
|
||||||
item.title = item.title + support.typo(item.fulltitle,'-- bold')
|
item.title = item.title + support.typo(item.fulltitle,'-- bold')
|
||||||
return item
|
return item
|
||||||
@@ -99,14 +100,14 @@ def episodios(item):
|
|||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
support.log()
|
support.log()
|
||||||
html = support.match(item, patron=r'TIPO:\s*</b>\s*([A-Za-z]+)')
|
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.contentType = 'tvshow'
|
||||||
item.data = html.data
|
item.data = html.data
|
||||||
return episodios(item)
|
return episodios(item)
|
||||||
else:
|
else:
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
if item.contentType != 'episode': item.contentType = 'movie'
|
||||||
video = support.match(html.data, patron=r'<source src="([^"]+)"').match
|
video = support.match(html.data, patron=r'<source src="([^"]+)"').match
|
||||||
item.contentType = 'movie'
|
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
support.Item(
|
support.Item(
|
||||||
channel=item.channel,
|
channel=item.channel,
|
||||||
|
|||||||
+3
-2
@@ -638,8 +638,9 @@ def menu(func):
|
|||||||
|
|
||||||
item = args['item']
|
item = args['item']
|
||||||
host = func.__globals__['host']
|
host = func.__globals__['host']
|
||||||
list_servers = func.__globals__['list_servers'] if 'list_servers' in func.__globals__ else 'directo'
|
list_servers = func.__globals__['list_servers'] if 'list_servers' in func.__globals__ else ['directo']
|
||||||
list_quality = func.__globals__['list_quality'] if 'list_quality' in func.__globals__ else 'default'
|
list_quality = func.__globals__['list_quality'] if 'list_quality' in func.__globals__ else ['default']
|
||||||
|
log('LIST QUALITY', list_quality)
|
||||||
filename = func.__module__.split('.')[1]
|
filename = func.__module__.split('.')[1]
|
||||||
global_search = False
|
global_search = False
|
||||||
# listUrls = ['film', 'filmSub', 'tvshow', 'tvshowSub', 'anime', 'animeSub', 'search', 'top', 'topSub']
|
# listUrls = ['film', 'filmSub', 'tvshow', 'tvshowSub', 'anime', 'animeSub', 'search', 'top', 'topSub']
|
||||||
|
|||||||
Reference in New Issue
Block a user