From 31f5c88e2afe674490b6c62096ebd1b88652f44e Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Fri, 13 Mar 2020 12:09:15 +0100 Subject: [PATCH] Fix Scarica Serie da Videoteca, Aggiunto Scarica Stagione a Menu contestuale --- platformcode/platformtools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 66391c42..2fb12894 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -657,7 +657,7 @@ def set_context_commands(item, parent_item): (sys.argv[0], item.clone(action="add_pelicula_to_library", from_action=item.action).tourl()))) - if item.channel != "downloads" and item.server != 'torrent': + if item.channel not in ["downloads", "videolibrary"] and item.server != 'torrent': # Descargar pelicula if item.contentType == "movie" and item.contentTitle: context_commands.append((config.get_localized_string(60354), "XBMC.RunPlugin(%s?%s)" % @@ -672,6 +672,10 @@ def set_context_commands(item, parent_item): (sys.argv[0], item.clone(channel="downloads", action="save_download", from_channel=item.channel, from_action=item.action).tourl()))) + context_commands.append((config.get_localized_string(60357), "XBMC.RunPlugin(%s?%s)" % + (sys.argv[0], item.clone(channel="downloads", action="save_download", download="seson", + from_channel=item.channel, + from_action=item.action).tourl()))) # Descargar episodio elif item.contentType == "episode": context_commands.append((config.get_localized_string(60356), "XBMC.RunPlugin(%s?%s)" %