From 81c26556b1652e1728081c8be6a50956b2e8af47 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 29 Aug 2019 15:50:58 +0200 Subject: [PATCH] Fix Download --- core/support.py | 4 ++-- specials/downloads.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/support.py b/core/support.py index 30660eb1..f6f49b43 100644 --- a/core/support.py +++ b/core/support.py @@ -260,8 +260,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t infoLabels=infolabels, thumbnail=item.thumbnail if function == 'episodios' else scraped["thumb"] , args=item.args, - contentSerieName=item.fulltitle if item.contentType != 'movie' else '', - contentTitle=title if item.contentType == 'movie' else '', + contentSerieName= title if item.contentType != 'movie' and function != 'episodios' else item.fulltitle if function == 'episodios' else '', + contentTitle= title if item.contentType == 'movie' else '', contentLanguage=lang, ep=episode if episode else '' ) diff --git a/specials/downloads.py b/specials/downloads.py index 1cbb9483..c8c28cea 100644 --- a/specials/downloads.py +++ b/specials/downloads.py @@ -887,8 +887,11 @@ def save_download_tvshow(item): item.show = item.fulltitle scraper.find_and_set_infoLabels(item) - logger.info('ID= ' + item.infoLabels['IMDBNumber']) + item.contentSerieName = item.fulltitle + item.downloadFilename = filetools.validate_path("%s [%s]" % (item.contentSerieName, item.infoLabels['IMDBNumber'])) + if config.get_setting("lowerize_title", "videolibrary") == 0: + item.downloadFilename = item.downloadFilename.lower() progreso.update(0, config.get_localized_string(70186), config.get_localized_string(70187) % item.contentChannel) episodes = get_episodes(item)