From 15f96768c4f484308b8f983aabbf2745aba2065d Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 3 Feb 2021 19:00:14 +0100 Subject: [PATCH] Fix Non mostra errore se annullata sceltta della numerazione --- core/videolibrarytools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/videolibrarytools.py b/core/videolibrarytools.py index f6d187c3..003284e3 100644 --- a/core/videolibrarytools.py +++ b/core/videolibrarytools.py @@ -502,7 +502,7 @@ def save_tvshow(item, episodelist, silent=False): logger.debug("Creating tvshow.nfo: " + tvshow_path) head_nfo = scraper.get_nfo(item, search_groups=True) if not head_nfo: - return 0, 0, 0, path + return None, None, None, None item.infoLabels['mediatype'] = "tvshow" item.infoLabels['title'] = item.contentSerieName item_tvshow = Item(title=item.contentSerieName, channel="videolibrary", action="get_seasons", @@ -1103,6 +1103,9 @@ def add_tvshow(item, channel=None): magnet_caching = False insertados, sobreescritos, fallidos, path = save_tvshow(item, itemlist) + if all(val == None for val in [insertados, sobreescritos, fallidos, path]): + return + if not insertados and not sobreescritos and not fallidos: filetools.rmdirtree(path) platformtools.dialog_ok(config.get_localized_string(30131), config.get_localized_string(60067) % item.show)