Skip to content

Commit

Permalink
release: v1.49.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Jan 31, 2023
1 parent dc16e11 commit fc8ac13
Show file tree
Hide file tree
Showing 5 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.49.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.49.0):
* Fix not all episodes showing in some cases

* [v1.48.0](https://github.com/newt-sc/a4kStreaming/releases/tag/plugin.video.a4kstreaming%2Fplugin.video.a4kstreaming-1.48.0):
* Support KODI 20

Expand Down
13 changes: 10 additions & 3 deletions a4kStreaming/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __add_seasons(core, title):
'day': episode_rld['day'],
'year_end': episode_rld['year'],
'month_end': min(int(episode_rld['month']) + 1, 12),
'day_end': episode_rld['day'] + 1,
'day_end': episode_rld['day'],
'last_episode': episode,
})

Expand All @@ -193,7 +193,7 @@ def __add_seasons(core, title):
seasons[episode_season].update({
'year': prev_season_last_ep_release_date['year'],
'month': prev_season_last_ep_release_date['month'],
'day': prev_season_last_ep_release_date['day'] + 1,
'day': prev_season_last_ep_release_date['day'],
})
else:
try:
Expand All @@ -207,7 +207,14 @@ def __add_seasons(core, title):
pass

try:
d1 = core.datetime(seasons[episode_season]['year_end'], seasons[episode_season]['month_end'], seasons[episode_season]['day_end'])
day_end = seasons[episode_season]['day_end']
while True:
try:
d1 = core.datetime(seasons[episode_season]['year_end'], seasons[episode_season]['month_end'], day_end)
seasons[episode_season]['day_end'] = day_end
break
except: day_end -= 1

d2 = core.datetime(episode_rld['year'], episode_rld['month'], episode_rld['day'])
if d1 < d2:
seasons[episode_season]['year_end'] = d2.year
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.48.0"
version="1.49.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.49.0]:
* Fix not all episodes showing in some cases

[v1.48.0]:
* Support KODI 20

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.48.0"
version="1.49.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.49.0]:
* Fix not all episodes showing in some cases

[v1.48.0]:
* Support KODI 20

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

0 comments on commit fc8ac13

Please sign in to comment.