Migliorie varie download e videolibrary_service rinominato in service

This commit is contained in:
marco
2020-03-29 17:13:14 +02:00
parent 1c3dc9e22e
commit 6a3dde4ba0
14 changed files with 164 additions and 136 deletions
+3 -3
View File
@@ -910,7 +910,7 @@ def download(itemlist, item, typography='', function_level=1, function=''):
contentSerieName=item.contentSerieName if item.contentSerieName else ''
contentTitle=item.contentTitle if item.contentTitle else ''
serverItemlist = [i.tourl() for i in itemlist]
downloadItemlist = [i.tourl() for i in itemlist]
if itemlist and item.contentChannel != 'videolibrary':
itemlist.append(
@@ -927,7 +927,7 @@ def download(itemlist, item, typography='', function_level=1, function=''):
contentTitle=contentTitle,
path=item.path,
thumbnail=thumb(thumb='downloads.png'),
serverItemlist=serverItemlist
downloadItemlist=downloadItemlist
))
if from_action == 'episodios':
itemlist.append(
@@ -944,7 +944,7 @@ def download(itemlist, item, typography='', function_level=1, function=''):
contentTitle=contentTitle,
download='season',
thumbnail=thumb(thumb='downloads.png'),
serverItemlist=serverItemlist
downloadItemlist=downloadItemlist
))
return itemlist
+2 -2
View File
@@ -537,7 +537,7 @@ def save_tvshow(item, episodelist):
item_tvshow.library_filter_show = {item.channel: item.show}
if item.channel != "downloads":
item_tvshow.active = 1 # para que se actualice a diario cuando se llame a videolibrary_service
item_tvshow.active = 1 # para que se actualice a diario cuando se llame a service
filetools.write(tvshow_path, head_nfo + item_tvshow.tojson())
@@ -601,7 +601,7 @@ def save_episodes(path, episodelist, serie, silent=False, overwrite=True):
nostrm_episodelist.append(season_episode)
nostrm_episodelist = sorted(set(nostrm_episodelist))
# Silent es para no mostrar progreso (para videolibrary_service)
# Silent es para no mostrar progreso (para service)
if not silent:
# progress dialog
p_dialog = platformtools.dialog_progress(config.get_localized_string(20000), config.get_localized_string(60064))