Skip to content

Commit

Permalink
release: v1.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Sep 3, 2021
1 parent 8d5038f commit 7716768
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* [v1.29.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.29.0):
* Improve actor browsing. Remove non-relevent titles and include TV Shows.

* [v1.28.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.28.0):
* Small fix to handle meta mismatch between season's episode vs episode's release date

Expand Down
29 changes: 28 additions & 1 deletion a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,23 @@ def query(core, params):
node {
title {
...Title
series {
series {
id
titleType {
id
}
titleText {
text
}
primaryImage {
url
width
height
type
}
}
}
}
}
}
Expand Down Expand Up @@ -1653,11 +1670,13 @@ def query(core, params):
title_ids = {}
temp_titles = []
for title in titles:
if title['titleType'] == 'tvEpisode':
title = title['series']
if title_ids.get(title['id'], True):
title_ids[title['id']] = False
temp_titles.append(title)

titles = list(filter(lambda t: t['titleType'] != 'tvEpisode' and t.get('primaryImage', None) and title, temp_titles))
titles = list(filter(lambda t: (t['titleType'] in ['movie', 'tvSeries']) and t.get('primaryImage', None), temp_titles))
pageInfo = data.get('pageInfo', {})
hasNextPage = pageInfo.get('hasNextPage', None)
paginationToken = pageInfo.get('endCursor', None)
Expand All @@ -1671,6 +1690,14 @@ def query(core, params):
if params.paginationToken:
return titles

title_ids = {}
temp_titles = titles
titles = []
for title in temp_titles:
if title_ids.get(title['id'], True):
title_ids[title['id']] = False
titles.append(title)

data['pageInfo'] = None

__add_titles(core, titles, browse=None)
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.28.0"
version="1.29.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.29.0]:
* Improve actor browsing. Remove non-relevent titles and include TV Shows.

[v1.28.0]:
* Small fix to handle meta mismatch between season's episode vs episode's release date

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.28.0"
version="1.29.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.29.0]:
* Improve actor browsing. Remove non-relevent titles and include TV Shows.

[v1.28.0]:
* Small fix to handle meta mismatch between season's episode vs episode's release date

Expand Down
2 changes: 1 addition & 1 deletion packages/addons.xml.crc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8e28ba0bd49d4c3a4e4a1028f1f7889612337291
9c39794ca4b61ded91ad65af7d209e5e6cf58824

0 comments on commit 7716768

Please sign in to comment.