From b7baebd82f6d7aa820d2911709cac36a1b1683eb Mon Sep 17 00:00:00 2001 From: mediaminister Date: Sun, 30 Aug 2026 14:16:39 +0200 Subject: [PATCH] Fix getting program data --- resources/lib/api.py | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/resources/lib/api.py b/resources/lib/api.py index c38862e5..56ffa9dd 100644 --- a/resources/lib/api.py +++ b/resources/lib/api.py @@ -550,6 +550,55 @@ def get_program_data(program_name): } } } + fragment metaFragment on MetaDataItem { + __typename + type + value + shortValue + longValue + icons { + ...iconFragment + __typename + } + } + fragment iconFragment on Icon { + __typename + accessibilityLabel + position + type + ... on DesignSystemIcon { + value { + __typename + color + name + } + activeValue { + __typename + color + name + } + __typename + } + ... on ImageIcon { + value { + __typename + srcSet { + src + format + __typename + } + } + activeValue { + __typename + srcSet { + src + format + __typename + } + } + __typename + } + } %s """ % EPISODE_TILE operation_name = 'VideoProgramPage'