Download rimosso da videoteca
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)" %
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user