2025-01-07, 01:29 AM
(This post was last modified: 2025-01-07, 03:07 AM by theguymadmax. Edited 2 times in total.)
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:
Season 7 (Zero-based, so it's actually the 8th season).
Episode 12 (Zero-based, so it's actually the 13th episode).
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).