From 39a1c46b62509226e388195bac35fc1ea7d96de1 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Sat, 9 Oct 2021 10:22:29 +0200 Subject: [PATCH] Piccolo Fix aggiornamento Videoteca --- core/videolibrarytools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/videolibrarytools.py b/core/videolibrarytools.py index c2446c29..a59409cc 100644 --- a/core/videolibrarytools.py +++ b/core/videolibrarytools.py @@ -277,7 +277,7 @@ def filter_list(episodelist, action=None, path=None): channel_prefs = {} lang_sel = quality_sel = show_title = channel ='' - if action: + if action: tvshow_path = filetools.join(path, "tvshow.nfo") head_nfo, tvshow_item = read_nfo(tvshow_path) channel = episodelist[0].channel @@ -577,7 +577,8 @@ def save_episodes(path, episodelist, serie, silent=False, overwrite=True): @return: the number of failed episodes """ logger.debug() - episodelist = filter_list(episodelist, serie.action, path) + if episodelist: + episodelist = filter_list(episodelist, serie.action, path) # No episode list, nothing to save if not len(episodelist): logger.debug("There is no episode list, we go out without creating strm")