Skip to content

Commit 415c84f

Browse files
committed
[plugin.video.vrt.nu] 2.5.45+matrix.1
1 parent aa157c1 commit 415c84f

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

plugin.video.vrt.nu/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ leave a message at [our Facebook page](https://facebook.com/kodivrtnu/).
5959
</table>
6060

6161
## Releases
62+
### v2.5.45 (2025-10-29)
63+
- Fix TV guide menu listings (@mediaminister)
64+
6265
### v2.5.44 (2025-10-10)
6366
- Improve TV guide menu listings (@mediaminister)
6467
- Fix api requests for long episode lists (@mediaminister)

plugin.video.vrt.nu/addon.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.video.vrt.nu" name="VRT MAX" version="2.5.44+matrix.1" provider-name="Martijn Moreel, dagwieers, mediaminister">
2+
<addon id="plugin.video.vrt.nu" name="VRT MAX" version="2.5.45+matrix.1" provider-name="Martijn Moreel, dagwieers, mediaminister">
33
<requires>
44
<import addon="resource.images.studios.white" version="0.0.22"/>
55
<import addon="script.module.beautifulsoup4" version="4.6.2"/>
@@ -42,6 +42,9 @@
4242
<website>https://github.com/add-ons/plugin.video.vrt.nu/wiki</website>
4343
<source>https://github.com/add-ons/plugin.video.vrt.nu</source>
4444
<news>
45+
v2.5.45 (2025-10-29)
46+
- Fix TV guide menu listings
47+
4548
v2.5.44 (2025-10-10)
4649
- Improve TV guide menu listings
4750
- Fix api requests for long episode lists

plugin.video.vrt.nu/resources/lib/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,8 +1444,8 @@ def convert_episode(episode_tile, destination=None):
14441444
program_type = 'epg'
14451445
comp_id = episode_tile.get('componentId', '').lstrip('#')
14461446
decoded = b64decode(comp_id.encode('utf-8')).decode('utf-8')
1447-
epg_parts = decoded.split('|')[3].split('#1')
1448-
channel_id, start_str = epg_parts[0], epg_parts[-1]
1447+
epg_parts = decoded.split('#1')
1448+
channel_id, start_str = epg_parts[1], epg_parts[2].split('|')[0]
14491449

14501450
start_dt = datetime.fromisoformat(start_str.replace('Z', '+00:00'))
14511451
if not duration:

plugin.video.vrt.nu/resources/lib/tvguide.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,16 @@ def get_epg_data(self):
189189
# Decode start datetime
190190
comp_id = node.get('componentId', '').lstrip('#')
191191
decoded = b64decode(comp_id.encode('utf-8')).decode('utf-8')
192-
start_str = decoded.split('|')[3].split('#1')[-1]
192+
start_str = decoded.split('#1')[2].split('|')[0]
193193
start_dt = datetime.fromisoformat(start_str.replace('Z', '+00:00'))
194194

195195
episode = node.get('episode')
196196
duration = None
197197

198198
if episode and (dur_raw := episode.get('durationRaw')):
199199
duration = parse_duration(dur_raw)
200-
elif node.get('statusMeta'):
200+
201+
if duration == timedelta(0) and node.get('statusMeta'):
201202
minutes_str = node['statusMeta'][0].get('value', '').split()[0]
202203
if minutes_str.isdigit():
203204
duration = timedelta(minutes=int(minutes_str))

0 commit comments

Comments
 (0)