Merge branch 'master' of github.com:kodiondemand/addon
This commit is contained in:
+6
-5
@@ -345,13 +345,13 @@ def thumb(itemlist=[]):
|
|||||||
'now_playing':['cinema', 'in sala'],
|
'now_playing':['cinema', 'in sala'],
|
||||||
'channels_anime':['anime'],
|
'channels_anime':['anime'],
|
||||||
'genres':['genere', 'generi', 'categorie', 'categoria'],
|
'genres':['genere', 'generi', 'categorie', 'categoria'],
|
||||||
'channels_animation': ['animazione', 'cartoni'],
|
'channels_animation': ['animazione', 'cartoni', 'cartoon'],
|
||||||
'channels_adventure': ['avventura'],
|
|
||||||
'channels_action':['azione', 'arti marziali'],
|
'channels_action':['azione', 'arti marziali'],
|
||||||
|
'channels_adventure': ['avventura'],
|
||||||
'channels_biographical':['biografico'],
|
'channels_biographical':['biografico'],
|
||||||
'channels_comedy':['comico','commedia', 'demenziale'],
|
'channels_comedy':['comico','commedia', 'demenziale'],
|
||||||
'channels_adult':['erotico', 'hentai'],
|
'channels_adult':['erotico', 'hentai'],
|
||||||
'channels_drama':['drammatico'],
|
'channels_drama':['drammatico', 'drama'],
|
||||||
'channels_syfy':['fantascienza'],
|
'channels_syfy':['fantascienza'],
|
||||||
'channels_fantasy':['fantasy'],
|
'channels_fantasy':['fantasy'],
|
||||||
'channels_crime':['gangster','poliziesco'],
|
'channels_crime':['gangster','poliziesco'],
|
||||||
@@ -385,7 +385,7 @@ def thumb(itemlist=[]):
|
|||||||
search_suffix ={'_movie':['film'],
|
search_suffix ={'_movie':['film'],
|
||||||
'_tvshow':['serie','tv']}
|
'_tvshow':['serie','tv']}
|
||||||
for item in itemlist:
|
for item in itemlist:
|
||||||
|
|
||||||
# Check if item has args propriety
|
# Check if item has args propriety
|
||||||
if item.args: item.title = item.title + ' || ' + str(item.args)
|
if item.args: item.title = item.title + ' || ' + str(item.args)
|
||||||
|
|
||||||
@@ -401,7 +401,8 @@ def thumb(itemlist=[]):
|
|||||||
for suffix, titles in suffix_dict.items():
|
for suffix, titles in suffix_dict.items():
|
||||||
if any( word in item.title.lower() for word in titles ):
|
if any( word in item.title.lower() for word in titles ):
|
||||||
thumb = thumb + suffix
|
thumb = thumb + suffix
|
||||||
item.thumbnail = get_thumb(thumb + '.png')
|
else:
|
||||||
|
item.thumbnail = get_thumb(thumb + '.png')
|
||||||
else:
|
else:
|
||||||
thumb = item.thumbnails
|
thumb = item.thumbnails
|
||||||
|
|
||||||
|
|||||||
+8
-6
@@ -52,7 +52,7 @@ def hdpass_get_servers(item):
|
|||||||
for media_label, media_url in scrapertoolsV2.find_multiple_matches(data, patron_media):
|
for media_label, media_url in scrapertoolsV2.find_multiple_matches(data, patron_media):
|
||||||
itemlist.append(Item(channel=item.channel,
|
itemlist.append(Item(channel=item.channel,
|
||||||
action="play",
|
action="play",
|
||||||
title=item.title+" ["+color(server, 'orange')+"]"+" - "+color(res_video, 'limegreen'),
|
title=item.title + typo(server, '-- [] color kod') + typo(res_video, '-- [] color kod'),
|
||||||
fulltitle=item.fulltitle,
|
fulltitle=item.fulltitle,
|
||||||
quality=res_video,
|
quality=res_video,
|
||||||
show=item.show,
|
show=item.show,
|
||||||
@@ -107,7 +107,7 @@ def search(channel, item, texto):
|
|||||||
|
|
||||||
def dbg():
|
def dbg():
|
||||||
import webbrowser
|
import webbrowser
|
||||||
webbrowser.open('localhost:5555')
|
webbrowser.open('http://localhost:5555')
|
||||||
import web_pdb;
|
import web_pdb;
|
||||||
web_pdb.set_trace()
|
web_pdb.set_trace()
|
||||||
|
|
||||||
@@ -315,7 +315,7 @@ def scrape(func):
|
|||||||
itemlist.append(it)
|
itemlist.append(it)
|
||||||
checkHost(item, itemlist)
|
checkHost(item, itemlist)
|
||||||
|
|
||||||
if (item.contentType == "tvshow" and (action != "findvideos" and action != "play")) \
|
if ('thumb' not in args and item.contentType == "tvshow" and (action == "findvideos" and action != "play")) \
|
||||||
or (item.contentType == "episode" and action != "play") \
|
or (item.contentType == "episode" and action != "play") \
|
||||||
or (item.contentType == "movie" and action != "play") :
|
or (item.contentType == "movie" and action != "play") :
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
@@ -349,6 +349,9 @@ def scrape(func):
|
|||||||
if addVideolibrary and (item.infoLabels["title"] or item.fulltitle):
|
if addVideolibrary and (item.infoLabels["title"] or item.fulltitle):
|
||||||
item.fulltitle = item.infoLabels["title"]
|
item.fulltitle = item.infoLabels["title"]
|
||||||
videolibrary(itemlist, item)
|
videolibrary(itemlist, item)
|
||||||
|
|
||||||
|
if 'thumb' in args:
|
||||||
|
itemlist = thumb(itemlist)
|
||||||
|
|
||||||
if 'fullItemlistHook' in args:
|
if 'fullItemlistHook' in args:
|
||||||
itemlist = args['fullItemlistHook'](itemlist)
|
itemlist = args['fullItemlistHook'](itemlist)
|
||||||
@@ -512,8 +515,7 @@ def menuItem(itemlist, filename, title='', action='', url='', contentType='movie
|
|||||||
url = url,
|
url = url,
|
||||||
extra = extra,
|
extra = extra,
|
||||||
args = args,
|
args = args,
|
||||||
contentType = contentType,
|
contentType = contentType
|
||||||
folder = False,
|
|
||||||
))
|
))
|
||||||
|
|
||||||
# Apply auto Thumbnails at the menus
|
# Apply auto Thumbnails at the menus
|
||||||
@@ -693,7 +695,7 @@ def match(item, patron='', patronBlock='', headers='', url=''):
|
|||||||
matches = scrapertoolsV2.find_multiple_matches(block, patron)
|
matches = scrapertoolsV2.find_multiple_matches(block, patron)
|
||||||
log('MATCHES= ',matches)
|
log('MATCHES= ',matches)
|
||||||
|
|
||||||
return matches, data
|
return matches, block
|
||||||
|
|
||||||
|
|
||||||
def videolibrary(itemlist, item, typography='', function_level=1):
|
def videolibrary(itemlist, item, typography='', function_level=1):
|
||||||
|
|||||||
Reference in New Issue
Block a user