From e94fa2eed28b05a23f3db174a10f05de4ddf8377 Mon Sep 17 00:00:00 2001 From: "Arv.Void" Date: Sat, 28 Aug 2021 17:58:28 +0200 Subject: [PATCH] New version errors in seasons/series fix (#201) --- addon.xml | 4 ++-- changelog.md | 3 +++ hbogolib/handlereu.py | 14 +++++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 8b20565..41f28d9 100644 --- a/addon.xml +++ b/addon.xml @@ -1,4 +1,4 @@ - + @@ -44,7 +44,7 @@ If an official app is available for your platform, use it instead of this. https://github.com/arvvoid/plugin.video.hbogoeu https://arvvoid.github.io/plugin.video.hbogoeu -- Fixes +- Fixes "new version" errors on series/season listings resources/icon.png diff --git a/changelog.md b/changelog.md index b913e96..0bb0a6c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +v.2.7.8 +- Fixes "new version" errors on series/season listings + v.2.7.4 - Hot Fix: fix playback going throu TV Shows or Movies category [EU region] - Remove obsolete non standard login redirect methods (no longer needed and abandoned by all operators) [EU region] diff --git a/hbogolib/handlereu.py b/hbogolib/handlereu.py index 088f56c..115e427 100644 --- a/hbogolib/handlereu.py +++ b/hbogolib/handlereu.py @@ -675,6 +675,13 @@ def season(self, url): if not self.chk_login(): self.login() self.log("Season: " + str(url)) + # replace alien platform url with current set API platform + # temp fix for "new version" errors in series/season listings + url = url.replace("APTV", self.API_PLATFORM) + url = url.replace("ANMO", self.API_PLATFORM) + self.log("Season url fix: " + str(url)) + # end fix + jsonrsp = self.get_from_hbogo(url) if jsonrsp is False: return @@ -717,7 +724,12 @@ def episode(self, url): self.log("Episode: " + str(url)) self.reset_media_type_counters() - + # replace alien platform url with current set API platform + # temp fix for "new version" errors in series/season listings + url = url.replace("APTV", self.API_PLATFORM) + url = url.replace("ANMO", self.API_PLATFORM) + self.log("Episode url fix: " + str(url)) + # end fix jsonrsp = self.get_from_hbogo(url) if jsonrsp is False: return