Field #SEASON and #EPISODE seem reversed (1 Viewer)

Quake505

Portal Pro
May 23, 2009
68
8
Hi all,

I'm creating my own grabber for WebEPG but the output for field #SEASON and #EPISODE seem reversed.

Example, below is the description to be searched (taken from tvguide.xml): -

<title>That '70s Show</title>
<desc>I'm A Boy. Series 6, episode 8.
American comedy series about a group of teenagers in the 1970s. Red is ungrateful when Fez volunteers to drive him all over town. Eric lies to gain sympathy from Kitty and Donna.
Starring: Topher Grace, Kurtwood Smith, Debra Jo Rupp, Laura Prepon
(2004)</desc>

<category>Sitcom</category>

Below is the search used: -

<Searches>
<Search match="Series [0-9]," field="#SEASON" remove="false" />
<Search match="episode [0-9]." field="#EPISODE" remove="false" />

</Searches>

And below is the output in the tvguide.xml file: -

<episode-num>8.6</episode-num>

The output is episode number (8) then series (6), I believe the output should be the other way round, series then episode.

The output should be <episode-num>6.8</episode-num>

Is the output or me wrong?

Thanks

Q505

FYI,

This is using webepg that installed with V1.0.2.
 

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    In fact, per xmltv spec, the output should be:
    <episode-num>5.7.</episode-num>

    This is a known deviation from the standard and IIRC it is taken into account in MP. But this has been fixed in 1.1.0 beta. In fact webepg no longer needs to export to xmltv format (it writes directly to tvserver's database) and is included as a tvserver plugin.;)
     

    Quake505

    Portal Pro
    May 23, 2009
    68
    8
    Thanks Arion_p.

    So the 0 would convert to 1?

    I'm using WebEPG to import the program information into the 'For The Record' plugin, I find this plugin much better than the standard 1.0.2 TV schedule.

    Do you know if 1.1.0 has the same features as ‘For The Record’?

    Going a bit off topic, but what Fields does WebEPG support, at MediaPortal_WebEPG_Grabber - MediaPortal Manual Documentation it describes 13 fields but I have seen in this forum other grabber files with different fields, for example ‘#Widescreen’

    I will switch the fileds for the moment to work with 'For The Record'.

    Thanks

    Q505
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    So the 0 would convert to 1?
    In xmltv, season/episode numbers are 0 based, if that is what you mean. Also, all three dots should be present even if parts of the season.episode.part scheme is missing. E.g. episode 3 would be .2., while episode 3 of season 2 would be 1.2.

    I'm using WebEPG to import the program information into the 'For The Record' plugin, I find this plugin much better than the standard 1.0.2 TV schedule.

    Do you know if 1.1.0 has the same features as ‘For The Record’?
    The scheduler in TV Server has not changed, but WebEPG can still export to xmltv.


    As for the fields supported by webepg, I will have to check.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Supported fields are:

    Code:
    #STARTXMLTV    (program start date/time)
    #ENDXMLTV    (program end date/time)
    #START  (program start time)
    #END   (program end time)
    #DATE  (program date)
    #DAY  (program day part of date)
    #DESCRIPTION
    #TITLE
    #SUBTITLE   (episode name)
    #GENRE
    #ACTORS
    #EPISODE
    #SEASON
    #REPEAT   (true if show is a repeat)
    #SUBTITLES   (true if show has subtitles)
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,645
    776
    Göteborg
    Home Country
    Sweden Sweden
    In fact, per xmltv spec, the output should be:
    <episode-num>5.7.</episode-num>

    This is a known deviation from the standard and IIRC it is taken into account in MP. But this has been fixed in 1.1.0 beta. In fact webepg no longer needs to export to xmltv format (it writes directly to tvserver's database) and is included as a tvserver plugin.;)

    I'm using 1.1.0 Beta SVN 24281 but I'm not sure it's fixed. I'm also using For the Record so I need to write to a xmltv file. Here's the output:
    Code:
      <programme start="20091213143000 +0100" channel="BBC Entertainment-bbcentertainment.com">
        <title>Doctor Who</title>
        <desc>Science fiction-serie. Fear her. In 2012, the Doctor plans to show Rose the London Olympics. Season 2. Episode 11.</desc>
        <episode-num>11.2</episode-num>
      </programme>

    According to xmltv.dtd episode-num should be 1.10 in this case, no?
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    I'm using 1.1.0 Beta SVN 24281 but I'm not sure it's fixed. I'm also using For the Record so I need to write to a xmltv file. Here's the output:
    Code:
      <programme start="20091213143000 +0100" channel="BBC Entertainment-bbcentertainment.com">
        <title>Doctor Who</title>
        <desc>Science fiction-serie. Fear her. In 2012, the Doctor plans to show Rose the London Olympics. Season 2. Episode 11.</desc>
        <episode-num>11.2</episode-num>
      </programme>
    According to xmltv.dtd episode-num should be 1.10 in this case, no?

    You are (almost) right. In fact episode-num should be 1.10. (note the trailing dot). I was mistaken in that it was fixed on 29/3/2009 but then it was reverted on 5/4/2009 because it broke compatibility with For The Record. (See original thread: https://forum.team-mediaportal.com/...bepg-fixes-epoch-time-episode-handling-56744/)
    I know nothing about For The Record and as you know we cannot support it (it is not even open source, so I don't think anyone but the author can). But from the above thread it seems that James reverted the change because For The Record expects episode-num in the current (wrong) format.
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,645
    776
    Göteborg
    Home Country
    Sweden Sweden
    Thanks again arion. it seems you're right :)
    I've imported the WebEPG produced xml file to For the Record and it displays correctly.

    There's two numbering systems, 'xmltv_ns' and 'onscreen', according to xmltv.dtd. It looks like WebEPG doesn't specify which system is in use and therefore 'onscreen' is assumed by For the Record.
    Here's what the element looks like in xmltv.dtd's example:
    Code:
    <episode-num system="xmltv_ns">2 . 9 . 0/1</episode-num>
    Perhaps WebEPG should be modified to either specify system="onscreen" or "xmltv_ns" and zero based season and episode numbers? To eliminate confusion and follow the XMLTV specifications :)

    "xmltv_ns" is the preferred system if I understand it correctly. Using "onscreen" you wouldn't really need the dots and correct position of season/episode since it's just handled as a text field (?)
     

    Users who are viewing this thread

    Top Bottom