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