save a loop searchEpisodes

This commit is contained in:
blacktwin 2019-10-19 02:03:36 -04:00
parent c5f29ac39f
commit 65b424d3cc

View File

@ -330,8 +330,7 @@ def multi_filter_search(keyword_dict, library, search_eps=None):
search_dict[key] = value
if search_eps:
logs["data"] = [{key: value}]
for show in library.all():
for episode in show.episodes(**search_dict):
for episode in library.searchEpisodes(**search_dict):
ep_lst += [episode.ratingKey]
ep_logs += [episode.title, episode.summary]
@ -342,8 +341,7 @@ def multi_filter_search(keyword_dict, library, search_eps=None):
multi_lst += search_lst
else:
if search_eps:
for show in library.all():
for episode in show.episodes(**{key: values}):
for episode in library.searchEpisodes(**{key: values}):
ep_lst += [episode.ratingKey]
multi_lst += ep_lst