add playlists radio to search result page

This commit is contained in:
petitminion 2022-11-20 10:49:23 +00:00
commit 01fd1503c9
6 changed files with 38 additions and 14 deletions

View file

@ -418,7 +418,7 @@ def test_get_choices_for_custom_radio_exclude_tag(factories):
def test_can_start_custom_multiple_radio_from_api(api_client, factories):
tracks = factories["music.Track"].create_batch(5)
url = reverse("api:v1:radios:sessions-list")
map_filters_to_type = {"tags": "names", "artists": "ids"}
map_filters_to_type = {"tags": "names", "artists": "ids", "playlists": "names"}
for (key, value) in map_filters_to_type.items():
attr = value[:-1]
track_filter_key = [getattr(a.artist, attr) for a in tracks]