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

Commit e94fa2e

Browse files
authored
New version errors in seasons/series fix (#201)
1 parent eba0e7c commit e94fa2e

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

addon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<addon id="plugin.video.hbogoeu" name="hGO EU" provider-name="arvvoid" version="2.7.5">
1+
<addon id="plugin.video.hbogoeu" name="hGO EU" provider-name="arvvoid" version="2.7.8">
22
<requires>
33
<import addon="xbmc.python" version="2.26.0" />
44
<import addon="script.module.kodi-six" version="0.1.0" />
@@ -44,7 +44,7 @@ If an official app is available for your platform, use it instead of this.
4444
<source>https://github.com/arvvoid/plugin.video.hbogoeu</source>
4545
<website>https://arvvoid.github.io/plugin.video.hbogoeu</website>
4646
<news>
47-
- Fixes
47+
- Fixes "new version" errors on series/season listings
4848
</news>
4949
<assets>
5050
<icon>resources/icon.png</icon>

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v.2.7.8
2+
- Fixes "new version" errors on series/season listings
3+
14
v.2.7.4
25
- Hot Fix: fix playback going throu TV Shows or Movies category [EU region]
36
- Remove obsolete non standard login redirect methods (no longer needed and abandoned by all operators) [EU region]

hbogolib/handlereu.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,13 @@ def season(self, url):
675675
if not self.chk_login():
676676
self.login()
677677
self.log("Season: " + str(url))
678+
# replace alien platform url with current set API platform
679+
# temp fix for "new version" errors in series/season listings
680+
url = url.replace("APTV", self.API_PLATFORM)
681+
url = url.replace("ANMO", self.API_PLATFORM)
682+
self.log("Season url fix: " + str(url))
683+
# end fix
684+
678685
jsonrsp = self.get_from_hbogo(url)
679686
if jsonrsp is False:
680687
return
@@ -717,7 +724,12 @@ def episode(self, url):
717724
self.log("Episode: " + str(url))
718725

719726
self.reset_media_type_counters()
720-
727+
# replace alien platform url with current set API platform
728+
# temp fix for "new version" errors in series/season listings
729+
url = url.replace("APTV", self.API_PLATFORM)
730+
url = url.replace("ANMO", self.API_PLATFORM)
731+
self.log("Episode url fix: " + str(url))
732+
# end fix
721733
jsonrsp = self.get_from_hbogo(url)
722734
if jsonrsp is False:
723735
return

0 commit comments

Comments
 (0)