mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:59:24 +00:00
fix query playlist API
This commit is contained in:
@@ -23,7 +23,7 @@ class QueryBuilder:
|
|||||||
must_list = []
|
must_list = []
|
||||||
channel = self.request_params.get("channel")
|
channel = self.request_params.get("channel")
|
||||||
if channel:
|
if channel:
|
||||||
must_list.append({"match": {"playlist_channel_id": channel[0]}})
|
must_list.append({"match": {"playlist_channel_id": channel}})
|
||||||
|
|
||||||
subscribed = self.request_params.get("subscribed")
|
subscribed = self.request_params.get("subscribed")
|
||||||
if subscribed:
|
if subscribed:
|
||||||
@@ -31,7 +31,7 @@ class QueryBuilder:
|
|||||||
|
|
||||||
playlist_type = self.request_params.get("type")
|
playlist_type = self.request_params.get("type")
|
||||||
if playlist_type:
|
if playlist_type:
|
||||||
type_list = self.parse_type(playlist_type[0])
|
type_list = self.parse_type(playlist_type)
|
||||||
must_list.append(type_list)
|
must_list.append(type_list)
|
||||||
|
|
||||||
query = {"bool": {"must": must_list}}
|
query = {"bool": {"must": must_list}}
|
||||||
|
|||||||
Reference in New Issue
Block a user