diff --git a/CHANGELOG.md b/CHANGELOG.md index c05b856..c40c581 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/a4kStreaming/explorer.py b/a4kStreaming/explorer.py index a81d01d..3272c7b 100644 --- a/a4kStreaming/explorer.py +++ b/a4kStreaming/explorer.py @@ -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, }) @@ -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: @@ -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 diff --git a/addon.xml b/addon.xml index 78cee8c..fcfddf4 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.49.0]: + * Fix not all episodes showing in some cases + [v1.48.0]: * Support KODI 20 diff --git a/packages/addons.xml b/packages/addons.xml index c980e08..d9bdebd 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.49.0]: + * Fix not all episodes showing in some cases + [v1.48.0]: * Support KODI 20 diff --git a/packages/addons.xml.crc b/packages/addons.xml.crc index 5d87177..ffb890b 100644 --- a/packages/addons.xml.crc +++ b/packages/addons.xml.crc @@ -1 +1 @@ -aae96f5d916997c582fe6f68705fa2dae053ddd6 \ No newline at end of file +4d4aa9a84875da2a1eb7780fb88cdd37250b2387 \ No newline at end of file