save a loop searchEpisodes
This commit is contained in:
parent
c5f29ac39f
commit
65b424d3cc
@ -330,10 +330,9 @@ 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):
|
||||
ep_lst += [episode.ratingKey]
|
||||
ep_logs += [episode.title, episode.summary]
|
||||
for episode in library.searchEpisodes(**search_dict):
|
||||
ep_lst += [episode.ratingKey]
|
||||
ep_logs += [episode.title, episode.summary]
|
||||
|
||||
logs["data"].append({"keys": ep_lst, "info": ep_logs})
|
||||
search_lst = ep_lst
|
||||
@ -342,9 +341,8 @@ 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}):
|
||||
ep_lst += [episode.ratingKey]
|
||||
for episode in library.searchEpisodes(**{key: values}):
|
||||
ep_lst += [episode.ratingKey]
|
||||
multi_lst += ep_lst
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user