allowing for multiple media type playlist
This commit is contained in:
parent
3b7d5216aa
commit
baa9ff80fe
@ -253,7 +253,7 @@ def get_content(library_name, jbop, filters=None, search=None):
|
|||||||
filter_lst = [movie.ratingKey for movie in plex_library.search(**filters)]
|
filter_lst = [movie.ratingKey for movie in plex_library.search(**filters)]
|
||||||
child_lst += filter_lst
|
child_lst += filter_lst
|
||||||
if keyword and filters:
|
if keyword and filters:
|
||||||
child_lst = list(set(filter_lst) & set(search_lst))
|
child_lst += list(set(filter_lst) & set(search_lst))
|
||||||
|
|
||||||
elif library_type == 'show':
|
elif library_type == 'show':
|
||||||
if keyword:
|
if keyword:
|
||||||
@ -267,7 +267,7 @@ def get_content(library_name, jbop, filters=None, search=None):
|
|||||||
filter_lst += [episode.ratingKey]
|
filter_lst += [episode.ratingKey]
|
||||||
child_lst += filter_lst
|
child_lst += filter_lst
|
||||||
if keyword and filters:
|
if keyword and filters:
|
||||||
child_lst = list(set(filter_lst) & set(search_lst))
|
child_lst += list(set(filter_lst) & set(search_lst))
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user