Merge branch 'master' of github.com:kodiondemand/addon

This commit is contained in:
greko17
2019-09-19 10:56:12 +02:00
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -79,6 +79,7 @@ def search(item, texto):
support.log(texto) support.log(texto)
item.args = 'noorder' item.args = 'noorder'
item.url = host + '/search?keyword=' + texto item.url = host + '/search?keyword=' + texto
item.contentType = 'tvshow'
try: try:
return peliculas(item) return peliculas(item)
# Continua la ricerca in caso di errore # Continua la ricerca in caso di errore
@@ -98,10 +99,13 @@ def peliculas(item):
action='findvideos' action='findvideos'
else: else:
if item.args != 'noorder' and not item.url[-1].isdigit(): item.url += order() # usa l'ordinamento di configura canale if item.args != 'noorder' and not item.url[-1].isdigit(): item.url += order() # usa l'ordinamento di configura canale
patron= r'<div class="inner">\s*<a href="(?P<url>[^"]+)" class[^>]+>\s*<img src="(?P<thumb>[^"]+)" alt?="(?P<title>[^\("]+)(?:\((?P<year>\d+)\) )?(?:\((?P<lang>[^\)]+)\))?"[^>]+>[^>]+>[^>]+>[^>]+>\s*(?:<div class="[^"]+">(?P<type>[^<]+)</div>)?' patron= r'<div class="inner">\s*<a href="(?P<url>[^"]+)" class[^>]+>\s*<img src="(?P<thumb>[^"]+)" alt?="(?P<title>[^\("]+)(?:\((?P<year>\d+)\) )?(?:\((?P<lang>[^\)]+)\))?"[^>]+>[^>]+>(?:\s*<div class="dub">[^>]+>)?\s*(?:<div class="[^"]+">(?P<type>[^<]+)</div>)?'
action='episodios' action='episodios'
# Controlla la lingua se assente # Controlla la lingua se assente
patronNext=r'href="([^"]+)" rel="next"'
type_content_dict={'movie':['movie', 'special']}
type_action_dict={'findvideos':['movie', 'special']}
check_lang = item.url check_lang = item.url
def itemHook(item): def itemHook(item):
if not item.contentLanguage: if not item.contentLanguage:
@@ -113,9 +117,7 @@ def peliculas(item):
item.title += support.typo(item.contentLanguage,'_ [] color kod') item.title += support.typo(item.contentLanguage,'_ [] color kod')
return item return item
patronNext=r'href="([^"]+)" rel="next"'
type_content_dict={'movie':['movie']}
type_action_dict={'findvideos':['movie']}
return locals() return locals()
+1 -1
View File
@@ -300,7 +300,7 @@ def make_list(itemlist, item, typography, dict_series, ID, SEASON, EPISODE, MODE
regular = {} regular = {}
complete = {} complete = {}
allep = 1 allep = 1
ep = 1 ep = 0
specialep = 0 specialep = 0
for episode in EpList: for episode in EpList:
complete[allep] = [str(episode[1]) + 'x' + str(episode[2]), episode[0]] complete[allep] = [str(episode[1]) + 'x' + str(episode[2]), episode[0]]