From 87c0250fc404c3593fb98068475b2b486a1e401c Mon Sep 17 00:00:00 2001 From: mediaminister <45148099+mediaminister@users.noreply.github.com> Date: Mon, 18 Dec 2023 19:53:18 +0100 Subject: [PATCH] Fix categories (#1143) --- resources/lib/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/api.py b/resources/lib/api.py index 6f081d6a..a477fe60 100644 --- a/resources/lib/api.py +++ b/resources/lib/api.py @@ -1608,8 +1608,8 @@ def get_online_categories(): data = dumps(payload).encode('utf-8') categories_json = get_url_json(url=GRAPHQL_URL, cache=None, headers=headers, data=data, raise_errors='all') if categories_json is not None: - content_types = find_entry(categories_json.get('data').get('uiSearch'), 'title', 'Aanbod').get('items') - genres = find_entry(categories_json.get('data').get('uiSearch'), 'title', 'Genres').get('items') + content_types = find_entry(categories_json.get('data').get('uiSearch'), 'listId', 'initialsearchcontenttypes').get('items') + genres = find_entry(categories_json.get('data').get('uiSearch'), 'listId', 'initialsearchgenres').get('items') category_items = content_types + genres for category in category_items: # Don't add audio-only categories