Jellyfin Forum
XMLTV numbering issue - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: XMLTV numbering issue (/t-xmltv-numbering-issue)



XMLTV numbering issue - ftcpr - 2025-01-06

Happy New year everyone!

Having a weird issue with XMLTV file.

New to Jellyfin and the forum, been messing around with it for over a week and worked out most issues. This one is tripping me up and I can't find another post in the forum with the same exact issue.

For some reason The episode and season show as +1. E.A. If XMLTV file has season 2 episode 15, Jellyfin guide will show the same episode as season 3 episode 16.

Attached a screen shot showing the data on the XML file from the console, vs the GUI vs website program data. where both XML and website are matching but Jellyfin is showing +1 on the season and +1 on the episode.

Running on Arch Linux
AMD FX9590
Nvidia GTX 970

:    


RE: XMLTV numbering issue - TheDreadPirate - 2025-01-06

What server version are you running?


RE: XMLTV numbering issue - ftcpr - 2025-01-06

Hey TDP, thanks for coming back!

Server version
10.10.3


RE: XMLTV numbering issue - TheDreadPirate - 2025-01-06

Can you clear your browser cache and check again? I'm not able to replicate and I don't see any open issues in our github that resemble this.


RE: XMLTV numbering issue - ftcpr - 2025-01-07

I know it's very weird.

Same issue across all clients, web client , android. windows client, etc.

Here is another show on another channel, same problem.

:    


RE: XMLTV numbering issue - theguymadmax - 2025-01-07

The xmltv_ns format uses zero-based indexing, meaning it expects values to start from 0 instead of 1. This is in contrast to common TV metadata formats, which typically use one-based indexing (starting from 1).

The method used to parse this format correctly adds 1 to the season and episode numbers to convert them to one-based indexing, which is the expected behavior for TV listings. Therefore, it appears that the data guide you referenced may be incorrect, as it doesn't account for the difference in indexing systems.

Here is an example from my XML guide:

Code:
<episode-num system="common">S08E13</episode-num>
<episode-num system="dd_progid">EP00080955.0182</episode-num>
<episode-num system="xmltv_ns">7.12.</episode-num>

Season 7 (Zero-based, so it's actually the 8th season).
Episode 12 (Zero-based, so it's actually the 13th episode).


RE: XMLTV numbering issue - ftcpr - 2025-01-07

Very interesting, you made me check the listing on the HDHomerun windows app to see if the same was happening there but not so. They show properly on that app.

The script I am using was pulled from here "https://github.com/andyg5000/HdHomeRunEpgXml"

Will look closer at the Wiki and see if I am missing something. Not sure if a different version of python would affect it.

Thanks again for the direction, need alot more learning to do.


RE: XMLTV numbering issue - theguymadmax - 2025-01-07

It's generating fake and incorrect data at this line.