Project

General

Profile

Episode number ignored

Added by Patrick van Velzen over 10 years ago

Hi All,

I have just configured xmltv import and it seems to be working for the most part, I do however have a problem with episode numbers. They are in my xml file, but don't show up in tvheadend.
And example for a show in my xml file:

  <programme start="20140602181000 +0200" stop="20140602185500 +0200" channel="HBO HD">
    <title lang="nl">Copper</title>
    <sub-title lang="nl">The Fine Ould Irish Gintleman</sub-title>
    <desc lang="nl">Rechercheur Corcoran wil het doel van de bolwerken in Five Points achterhalen. Het huwelijk van Morehouse zorgt voor spanningen bij zijn za$
    <credits>
      <actor>Tom Weston-Jones</actor>
      <actor>Kyle Schmid</actor>
      <actor>Anastasia Griffith</actor>
    </credits>
    <category lang="nl">drama</category>
    <episode-num>10</episode-num>
    <rating>
      <value>16</value>
    </rating>

Anyone got a clue on what is going on here or maybe how I can figure out the issue myself?

Thanks


Replies (5)

RE: Episode number ignored - Added by Adrian Strilchuk over 10 years ago

Hi,

This is a little late but hopefully it'll still be of some help.

Your episode-num element should look like this:

<episode-num system="xmltv_ns">s.e.p/t</episode-num>

Where s is the season number minus 1.
Where e is the episode number minus 1.
Where p is the part number minus 1.
Where t to the total parts (do not subtract 1)

so Season 7, Episode 5, Part 1 of 2 would appear as:

<episode-num system="xmltv_ns">6.4.0/2</episode-num>

Any section can be left blank (at least according to the xmltv spec). So your example would appear as (assuming you were referring to episode 10):

<episode-num system="xmltv_ns">.9.</episode-num>

Do a google search for "xmltv dtd" to see the full spec.

Good luck

Adrian

RE: Episode number ignored - Added by Patrick van Velzen over 10 years ago

Thanks,

Unfortunately that means Webgrab plus is creating an incorrect xml file.
For some reason I'm having a hard time finding a good xml source for Holland.

activ

RE: Episode number ignored - Added by Adrian Strilchuk over 10 years ago

A relatively simple python script can massage the data for you before tvheadend consumes it. I've made scripts to read the subtitle and prepend it to the description since XBMC doesn't seem to acknowledge that subtitles exist.

I could create a simple script to give you a head start if that helps.

Adrian

RE: Episode number ignored - Added by Patrick van Velzen over 10 years ago

Thanks for the offer, but it's not needed. I started a topic on the Webgrab forum and a very helpful person (like you) fixed it for me in the ini file that specifies the Webgrab output.
Now I get the episode numbers in TVH, the next problem is that the same episode gets added multiple times by TVH. I'll start a new topic for that.

RE: Episode number ignored - Added by Adrian Strilchuk over 10 years ago

Glad to hear that you've got it sorted out. I should mention for future viewers of this thread that there are other episode-num systems that can be used.

For example:

<episode-num system="onscreen">E512</episode-num>

My understanding is that "onscreen" is more of a free-form episode numbering system. I see it used when you don't have a season and episode number but you have some identifier i.e. E512 representing the 512th episode created in the series.

There's also dd_progid for TMS show/episode ids in North America (maybe others?).

<episode-num system="dd_progid">EP0012345678.0243</episode-num>

Adrian

    (1-5/5)