Piccolo Fix aggiornamento Videoteca

This commit is contained in:
Alhaziel01
2021-10-09 10:22:29 +02:00
parent 0274446ebb
commit 39a1c46b62

View File

@@ -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")