From 5265d9e26d6a9ac1727e7aa25f893ce0aa35c14d Mon Sep 17 00:00:00 2001 From: newt-sc <47229722+newt-sc@users.noreply.github.com> Date: Mon, 22 Feb 2021 02:41:39 +0200 Subject: [PATCH] release: v1.22.0 --- CHANGELOG.md | 3 +++ a4kStreaming/explorer.py | 2 +- a4kStreaming/lib/utils.py | 11 +++++++++-- addon.xml | 5 ++++- packages/addons.xml | 5 ++++- packages/addons.xml.crc | 2 +- 6 files changed, 22 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41ff1c7..45e6b00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +* [v1.22.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.22.0): + * Improve episode thumbnail meta + * [v1.21.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.21.0): * Fix seasons year diff --git a/a4kStreaming/explorer.py b/a4kStreaming/explorer.py index 6645bcf..0507b5d 100644 --- a/a4kStreaming/explorer.py +++ b/a4kStreaming/explorer.py @@ -46,7 +46,7 @@ def __set_wide_image_as_primary(title): if title_images and len(title_images) > 0: if title['primaryImage']: title_images.insert(0, title['primaryImage']) - wide_images = list(filter(lambda v: v['width'] > v['height'], title_images)) + wide_images = list(filter(lambda v: v['width'] > v['height'] and v.get('type', None) != 'poster', title_images)) if len(wide_images) > 0: title['primaryImage'] = wide_images[0] diff --git a/a4kStreaming/lib/utils.py b/a4kStreaming/lib/utils.py index f8e1b0a..47025bb 100644 --- a/a4kStreaming/lib/utils.py +++ b/a4kStreaming/lib/utils.py @@ -457,6 +457,7 @@ def get_graphql_query(body): url width height + type } releaseYear { year @@ -507,6 +508,7 @@ def get_graphql_query(body): url width height + type } } ... on Cast { @@ -556,12 +558,13 @@ def get_graphql_query(body): fragment TitleFull on Title { ...Title ...TitleCredits - images(first: 10) { + images(first: 10, filter: { types: ["still_frame"] }) { edges { node { url width height + type } } } @@ -575,6 +578,7 @@ def get_graphql_query(body): url width height + type } seasons: episodes { seasons { @@ -623,13 +627,15 @@ def get_graphql_query(body): url width height + type } - images(first: 10) { + images(first: 10, filter: { types: ["still_frame"] }) { edges { node { url width height + type } } } @@ -670,6 +676,7 @@ def get_graphql_query(body): url width height + type } } ... on Cast { diff --git a/addon.xml b/addon.xml index bd432f0..8f2553d 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ @@ -32,6 +32,9 @@ Designed for low-end devices and Estuary skin. screenshot-06.jpg +[v1.22.0]: + * Improve episode thumbnail meta + [v1.21.0]: * Fix seasons year diff --git a/packages/addons.xml b/packages/addons.xml index 8dc9093..db7ab0c 100644 --- a/packages/addons.xml +++ b/packages/addons.xml @@ -4,7 +4,7 @@ @@ -35,6 +35,9 @@ Designed for low-end devices and Estuary skin. screenshot-06.jpg +[v1.22.0]: + * Improve episode thumbnail meta + [v1.21.0]: * Fix seasons year diff --git a/packages/addons.xml.crc b/packages/addons.xml.crc index c29b9e6..b9e479c 100644 --- a/packages/addons.xml.crc +++ b/packages/addons.xml.crc @@ -1 +1 @@ -bf23c2f24482b36dba6def1963ce621e9e88c332 \ No newline at end of file +69f36d540b9ae31dc0ab096a5a8d937a192f93d1 \ No newline at end of file