From e4d0eaf5b11670e7919483387fcd5beae00fb8d8 Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Mon, 18 Feb 2019 14:15:40 -0500 Subject: [PATCH] #145 fix for multiple filters and one search. Multiple search locations not supported yet. --- fun/playlist_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fun/playlist_manager.py b/fun/playlist_manager.py index e413996..90ff6b2 100644 --- a/fun/playlist_manager.py +++ b/fun/playlist_manager.py @@ -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: