Download rimosso da videoteca

This commit is contained in:
Alhaziel
2019-08-25 19:07:51 +02:00
parent 170af495f2
commit 437c47868b
3 changed files with 28 additions and 30 deletions

View File

@@ -747,37 +747,35 @@ def download(itemlist, item, typography='', function_level=1, function=''):
contentSerieName=item.contentSerieName if item.contentSerieName else ''
contentTitle=item.contentTitle if item.contentTitle else ''
# if item.contentType != 'episode':
log(item)
itemlist.append(
Item(channel='downloads',
fromchannel=item.channel,
title=title,
fulltitle=item.fulltitle,
show=item.fulltitle,
contentType=item.contentType,
contentSerieName=contentSerieName,
url=item.url,
action='save_download',
fromaction=fromaction,
contentTitle=contentTitle
))
if fromaction == 'episodios':
if item.contentChannel != 'videolibrary':
itemlist.append(
Item(channel='downloads',
fromchannel=item.channel,
title=typo(config.get_localized_string(60357),typography),
fulltitle=item.fulltitle,
show=item.fulltitle,
contentType=item.contentType,
contentSerieName=contentSerieName,
url=item.url,
action='save_download',
fromaction=fromaction,
contentTitle=contentTitle,
download='season'
fromchannel=item.channel,
title=title,
fulltitle=item.fulltitle,
show=item.fulltitle,
contentType=item.contentType,
contentSerieName=contentSerieName,
url=item.url,
action='save_download',
fromaction=fromaction,
contentTitle=contentTitle
))
if fromaction == 'episodios':
itemlist.append(
Item(channel='downloads',
fromchannel=item.channel,
title=typo(config.get_localized_string(60357),typography),
fulltitle=item.fulltitle,
show=item.fulltitle,
contentType=item.contentType,
contentSerieName=contentSerieName,
url=item.url,
action='save_download',
fromaction=fromaction,
contentTitle=contentTitle,
download='season'
))
return itemlist

View File

@@ -596,7 +596,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 downloadenabled != "false":
if item.channel != "downloads" and item.channel != "videolibrary" and downloadenabled != "false":
# Descargar pelicula
if item.contentType == "movie":
context_commands.append((config.get_localized_string(60354), "XBMC.RunPlugin(%s?%s)" %

View File

@@ -49,7 +49,7 @@ def mainlist(item):
"action": "delFavourite",
"channel": "favorites",
"from_title": item.title},
{"title": "Renombrar",
{"title": config.get_localized_string(70278), # Rename
"action": "renameFavourite",
"channel": "favorites",
"from_title": item.title}