Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
New version errors in seasons/series fix (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvvoid authored Aug 28, 2021
1 parent eba0e7c commit e94fa2e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="plugin.video.hbogoeu" name="hGO EU" provider-name="arvvoid" version="2.7.5">
<addon id="plugin.video.hbogoeu" name="hGO EU" provider-name="arvvoid" version="2.7.8">
<requires>
<import addon="xbmc.python" version="2.26.0" />
<import addon="script.module.kodi-six" version="0.1.0" />
Expand Down Expand Up @@ -44,7 +44,7 @@ If an official app is available for your platform, use it instead of this.
<source>https://github.com/arvvoid/plugin.video.hbogoeu</source>
<website>https://arvvoid.github.io/plugin.video.hbogoeu</website>
<news>
- Fixes
- Fixes "new version" errors on series/season listings
</news>
<assets>
<icon>resources/icon.png</icon>
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
14 changes: 13 additions & 1 deletion hbogolib/handlereu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e94fa2e

Please sign in to comment.