Skip to content

Commit

Permalink
release: v1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Feb 22, 2021
1 parent a913cf4 commit 5265d9e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
11 changes: 9 additions & 2 deletions a4kStreaming/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def get_graphql_query(body):
url
width
height
type
}
releaseYear {
year
Expand Down Expand Up @@ -507,6 +508,7 @@ def get_graphql_query(body):
url
width
height
type
}
}
... on Cast {
Expand Down Expand Up @@ -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
}
}
}
Expand All @@ -575,6 +578,7 @@ def get_graphql_query(body):
url
width
height
type
}
seasons: episodes {
seasons {
Expand Down Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -670,6 +676,7 @@ def get_graphql_query(body):
url
width
height
type
}
}
... on Cast {
Expand Down
5 changes: 4 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.21.0"
version="1.22.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -32,6 +32,9 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.22.0]:
* Improve episode thumbnail meta

[v1.21.0]:
* Fix seasons year

Expand Down
5 changes: 4 additions & 1 deletion packages/addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<addons>
<addon id="plugin.video.a4kstreaming"
name="a4kStreaming"
version="1.21.0"
version="1.22.0"
provider-name="Unknown">
<requires>
<import addon="script.module.requests"/>
Expand Down Expand Up @@ -35,6 +35,9 @@ Designed for low-end devices and Estuary skin.
<screenshot>screenshot-06.jpg</screenshot>
</assets>
<news>
[v1.22.0]:
* Improve episode thumbnail meta

[v1.21.0]:
* Fix seasons year

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bf23c2f24482b36dba6def1963ce621e9e88c332
69f36d540b9ae31dc0ab096a5a8d937a192f93d1

0 comments on commit 5265d9e

Please sign in to comment.