Community, supporto Libreria e Download

This commit is contained in:
Alhaziel
2019-10-17 19:31:33 +02:00
parent a8fe4b4a98
commit 89f7e48ff4
6 changed files with 113 additions and 70 deletions
+6 -3
View File
@@ -805,7 +805,8 @@ def download(itemlist, item, typography='', function_level=1, function=''):
url=item.url,
action='save_download',
from_action=from_action,
contentTitle=contentTitle
contentTitle=contentTitle,
path=item.path
))
if from_action == 'episodios':
itemlist.append(
@@ -850,7 +851,8 @@ def videolibrary(itemlist, item, typography='', function_level=1, function=''):
contentTitle=item.contentTitle if item.contentTitle else ''
if (function == 'findvideos' and contentType == 'movie') \
or (function == 'episodios' and contentType != 'movie'):
or (function == 'episodios' and contentType != 'movie') \
or function == 'get_seasons' and item.channel == 'community':
if config.get_videolibrary_support() and len(itemlist) > 0:
itemlist.append(
Item(channel=item.channel,
@@ -862,7 +864,8 @@ def videolibrary(itemlist, item, typography='', function_level=1, function=''):
url=item.url,
action=action,
extra=extra,
contentTitle=contentTitle
contentTitle=contentTitle,
path=item.path
))
return itemlist
+4 -1
View File
@@ -833,7 +833,10 @@ def add_tvshow(item, channel=None):
# del item.tmdb_stat #Limpiamos el status para que no se grabe en la Videoteca
# Obtiene el listado de episodios
itemlist = getattr(channel, item.action)(item)
if item.channel == 'community':
itemlist = getattr(channel, 'get_seasons')(item)
else:
itemlist = getattr(channel, item.action)(item)
insertados, sobreescritos, fallidos, path = save_tvshow(item, itemlist)