Nasconde Aggiungi a Videoteca e Download
Se la serie non è rinumerata
This commit is contained in:
+11
-9
@@ -281,8 +281,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
infoLabels=infolabels,
|
infoLabels=infolabels,
|
||||||
thumbnail=item.thumbnail if function == 'episodios' else scraped["thumb"] ,
|
thumbnail=item.thumbnail if function == 'episodios' else scraped["thumb"] ,
|
||||||
args=item.args,
|
args=item.args,
|
||||||
contentSerieName= title if item.contentType != 'movie' and function != 'episodios' else item.fulltitle if function == 'episodios' else '',
|
contentSerieName= title if item.contentType or CT != 'movie' and function != 'episodios' else item.fulltitle if function == 'episodios' else '',
|
||||||
contentTitle= title if item.contentType == 'movie' else '',
|
contentTitle= title if item.contentType or CT == 'movie' else '',
|
||||||
contentLanguage = lang,
|
contentLanguage = lang,
|
||||||
ep=episode if episode else ''
|
ep=episode if episode else ''
|
||||||
)
|
)
|
||||||
@@ -406,16 +406,18 @@ def scrape(func):
|
|||||||
if action != 'play' and function != 'episodios' and 'patronMenu' not in args:
|
if action != 'play' and function != 'episodios' and 'patronMenu' not in args:
|
||||||
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
|
|
||||||
|
from specials import autorenumber
|
||||||
if anime:
|
if anime:
|
||||||
from specials import autorenumber
|
|
||||||
if function == 'episodios' or item.action == 'episodios': autorenumber.renumber(itemlist, item, 'bold')
|
if function == 'episodios' or item.action == 'episodios': autorenumber.renumber(itemlist, item, 'bold')
|
||||||
else: autorenumber.renumber(itemlist)
|
else: autorenumber.renumber(itemlist)
|
||||||
|
if anime and autorenumber.check(item) == False:
|
||||||
if addVideolibrary and (item.infoLabels["title"] or item.fulltitle):
|
pass
|
||||||
# item.fulltitle = item.infoLabels["title"]
|
else:
|
||||||
videolibrary(itemlist, item, function=function)
|
if addVideolibrary and (item.infoLabels["title"] or item.fulltitle):
|
||||||
if config.get_setting('downloadenabled') and (function == 'episodios' or function == 'finvideos'):
|
# item.fulltitle = item.infoLabels["title"]
|
||||||
download(itemlist, item, function=function)
|
videolibrary(itemlist, item, function=function)
|
||||||
|
if config.get_setting('downloadenabled') and (function == 'episodios' or function == 'finvideos'):
|
||||||
|
download(itemlist, item, function=function)
|
||||||
|
|
||||||
if 'patronMenu' in args:
|
if 'patronMenu' in args:
|
||||||
itemlist = thumb(itemlist, genre=True)
|
itemlist = thumb(itemlist, genre=True)
|
||||||
|
|||||||
@@ -387,3 +387,16 @@ def error(itemlist):
|
|||||||
heading = itemlist[0].fulltitle.strip()
|
heading = itemlist[0].fulltitle.strip()
|
||||||
platformtools.dialog_notification(heading, message)
|
platformtools.dialog_notification(heading, message)
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
def check(item):
|
||||||
|
try:
|
||||||
|
dict_series = jsontools.get_node_from_file(item.channel, TAG_TVSHOW_RENUMERATE)
|
||||||
|
TITLE = item.fulltitle.rstrip()
|
||||||
|
ID = dict_series[TITLE][TAG_ID]
|
||||||
|
SEASON = dict_series[TITLE][TAG_SEASON]
|
||||||
|
EPISODE = dict_series[TITLE][TAG_EPISODE]
|
||||||
|
MODE = dict_series[TITLE][TAG_MODE]
|
||||||
|
exist = True
|
||||||
|
except:
|
||||||
|
exist = False
|
||||||
|
return exist
|
||||||
|
|||||||
Reference in New Issue
Block a user