Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugin.video.vrt.nu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ leave a message at [our Facebook page](https://facebook.com/kodivrtnu/).
</table>

## Releases
### v2.5.34 (2025-02-04)
- Fix watching VRT MAX abroad (@mediaminister)
- Fix Sporza IPTV Manager EPG (@mediaminister)

### v2.5.33 (2024-12-01)
- Fix search (@mediaminister)
- Fix category menu listings (@mediaminister)
Expand Down
6 changes: 5 additions & 1 deletion plugin.video.vrt.nu/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.vrt.nu" name="VRT MAX" version="2.5.33+matrix.1" provider-name="Martijn Moreel, dagwieers, mediaminister">
<addon id="plugin.video.vrt.nu" name="VRT MAX" version="2.5.34+matrix.1" provider-name="Martijn Moreel, dagwieers, mediaminister">
<requires>
<import addon="resource.images.studios.white" version="0.0.22"/>
<import addon="script.module.beautifulsoup4" version="4.6.2"/>
Expand Down Expand Up @@ -42,6 +42,10 @@
<website>https://github.com/add-ons/plugin.video.vrt.nu/wiki</website>
<source>https://github.com/add-ons/plugin.video.vrt.nu</source>
<news>
v2.5.34 (2025-02-04)
- Fix watching VRT MAX abroad
- Fix Sporza IPTV Manager EPG

v2.5.33 (2024-12-01)
- Fix search
- Fix category menu listings
Expand Down
2 changes: 1 addition & 1 deletion plugin.video.vrt.nu/resources/lib/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
'vod': True,
},
{
'id': '12',
'id': 'OE',
'name': 'sporza',
'label': 'Sporza',
'studio': 'Sporza',
Expand Down
8 changes: 4 additions & 4 deletions plugin.video.vrt.nu/resources/lib/streamservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class StreamService:
_UPLYNK_LICENSE_URL = 'https://content.uplynk.com/wv'
_INVALID_LOCATION = 'INVALID_LOCATION'
_INCOMPLETE_ROAMING_CONFIG = 'INCOMPLETE_ROAMING_CONFIG'
_BELGIUM_ONLY = 'CONTENT_AVAILABLE_ONLY_IN_BE'
_GEOBLOCK_ERROR_CODES = (_INCOMPLETE_ROAMING_CONFIG, _INVALID_LOCATION, _BELGIUM_ONLY)
_BELGIUM_ONLY = ('CONTENT_AVAILABLE_ONLY_IN_BE', 'CONTENT_AVAILABLE_ONLY_FOR_BE_RESIDENTS')
_GEOBLOCK_ERROR_CODES = (_INCOMPLETE_ROAMING_CONFIG, _INVALID_LOCATION) + _BELGIUM_ONLY

def __init__(self, _tokenresolver):
"""Initialize Stream Service class"""
Expand Down Expand Up @@ -257,7 +257,7 @@ def get_stream(self, video, roaming=False, api_data=None):
message = localize(30965) # Geoblock error: Blocked on your geographical location based on your IP address
return self._handle_stream_api_error(message, stream_json)

if stream_json.get('code') == self._BELGIUM_ONLY:
if stream_json.get('code') in self._BELGIUM_ONLY:
message = localize(30973) # Geoblock error: This program can only be played from EU
return self._handle_stream_api_error(message, stream_json)

Expand All @@ -281,7 +281,7 @@ def get_stream(self, video, roaming=False, api_data=None):
def _handle_stream_api_error(message, video_json=None):
"""Show localized stream api error messages in Kodi GUI"""
if video_json:
log_error(video_json.get('message'))
log_error(video_json)
ok_dialog(message=message)
end_of_directory()

Expand Down
Loading