only show playlist if at least one entry

This commit is contained in:
simon 2021-11-14 15:51:55 +07:00
parent 8932a6bc02
commit 3d969c25fa
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 1 deletions

View File

@ -719,7 +719,9 @@ class PlaylistView(View):
data = {
"size": pagination_handler.pagination["page_size"],
"from": pagination_handler.pagination["page_from"],
"query": {"match_all": {}},
"query": {
"term": {"playlist_entries.downloaded": {"value": True}}
},
"sort": [{"playlist_name.keyword": {"order": "asc"}}],
}
search = SearchHandler(url, data)