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
3 changes: 3 additions & 0 deletions plugin.video.vrt.nu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ leave a message at [our Facebook page](https://facebook.com/kodivrtnu/).
</table>

## Releases
### v2.5.45 (2025-10-29)
- Fix TV guide menu listings (@mediaminister)

### v2.5.44 (2025-10-10)
- Improve TV guide menu listings (@mediaminister)
- Fix api requests for long episode lists (@mediaminister)
Expand Down
5 changes: 4 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.44+matrix.1" provider-name="Martijn Moreel, dagwieers, mediaminister">
<addon id="plugin.video.vrt.nu" name="VRT MAX" version="2.5.45+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,9 @@
<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.45 (2025-10-29)
- Fix TV guide menu listings

v2.5.44 (2025-10-10)
- Improve TV guide menu listings
- Fix api requests for long episode lists
Expand Down
4 changes: 2 additions & 2 deletions plugin.video.vrt.nu/resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,8 @@ def convert_episode(episode_tile, destination=None):
program_type = 'epg'
comp_id = episode_tile.get('componentId', '').lstrip('#')
decoded = b64decode(comp_id.encode('utf-8')).decode('utf-8')
epg_parts = decoded.split('|')[3].split('#1')
channel_id, start_str = epg_parts[0], epg_parts[-1]
epg_parts = decoded.split('#1')
channel_id, start_str = epg_parts[1], epg_parts[2].split('|')[0]

start_dt = datetime.fromisoformat(start_str.replace('Z', '+00:00'))
if not duration:
Expand Down
5 changes: 3 additions & 2 deletions plugin.video.vrt.nu/resources/lib/tvguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,16 @@ def get_epg_data(self):
# Decode start datetime
comp_id = node.get('componentId', '').lstrip('#')
decoded = b64decode(comp_id.encode('utf-8')).decode('utf-8')
start_str = decoded.split('|')[3].split('#1')[-1]
start_str = decoded.split('#1')[2].split('|')[0]
start_dt = datetime.fromisoformat(start_str.replace('Z', '+00:00'))

episode = node.get('episode')
duration = None

if episode and (dur_raw := episode.get('durationRaw')):
duration = parse_duration(dur_raw)
elif node.get('statusMeta'):

if duration == timedelta(0) and node.get('statusMeta'):
minutes_str = node['statusMeta'][0].get('value', '').split()[0]
if minutes_str.isdigit():
duration = timedelta(minutes=int(minutes_str))
Expand Down