#145 fix for multiple filters and one search. Multiple search locations not supported yet.

This commit is contained in:
Blacktwin 2019-02-18 14:15:40 -05:00
parent c3fa69ba28
commit e4d0eaf5b1

View File

@ -317,7 +317,10 @@ def get_content(libraries, jbop, filters=None, search=None, limit=None):
child_lst += list(set(filter_lst) & set(search_lst))
else:
pass
# Keep only results found from both search and filters
if keyword and filters:
child_lst = list(set(i for i in child_lst if child_lst.count(i) > 1))
play_lst = child_lst
else: