xmltv import fails (1 Viewer)

ulf

Portal Member
October 13, 2007
22
2
Home Country
United States of America United States of America
Hello,

I installed today The TVServer from MediaPortal_Setup_1.0_RC1_Refesh.exe from scratch and
wanted to import a tvguide.xml file that I generated with yapi2xml.

I enabled the XMLTV plugin in the TV Server Management Console. The Mapping of the TV channels on the Mappings screen worked well. If I then press the Import button on the settings screen, I get the following error in the status field:

tvguide.xml:Invalid XML file:confused:tartIndex cannot be less than zero.
Parameter name: startIndex;
and the logfile contains has the following :

...
2008-04-19 23:43:50.406250 [9]: channel#66 xmlid:0077 name:77 dbsid:68
2008-04-19 23:43:50.406250 [9]: channel#66 xmlid:0077 name:77 dbsid:68
2008-04-19 23:43:50.406250 [9]: channel#66 xmlid:0077 name:77 dbsid:68
2008-04-19 23:43:50.437500 [9]: channel#67 xmlid:0081 name:81 dbsid:69
2008-04-19 23:43:50.515625 [9]: channel#67 xmlid:0081 name:81 dbsid:69
2008-04-19 23:43:50.515625 [9]: channel#68 xmlid:0082 name:82 dbsid:70
2008-04-19 23:43:51.093750 [9]: xmltvimport: Reading TV programs
2008-04-19 23:43:51.140625 [9]: Xmltv: imported 69 channels, 256 programs status:tvguide.xml:Invalid XML file:confused:tartIndex cannot be less than zero.
Parameter name: startIndex;
2008-04-19 23:43:51.140625 [9]: plugin:xmltv import done


No data has been imported if I check the TV guide afterwards.

I have to say that the tvguide.xml file is around 16MB and it almost looks like xmltv can not import more then 256 programs per channel before there is an overflow.

Has anybody seen this behavior?
Is this a bug?

If required, I can provide the tvguide.xml file that I used.



Thanks,
Ulf
 

barnonline

Portal Member
November 9, 2006
35
1
Home Country
Denmark Denmark
Me too...

I have the same situation, I have provided the logfiles.

Previously, that is pre RC1, it ha not been a problem
 

ronilse

Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    ulf, please attach full logs & have you tried to open WebEPG-conf.exe & resaved your file & then imported again. Would be fine if you could zip TVGuide.xml & attach it to your post so we can run it here ;)

    barnonline, your logs shows that you have MP crashing(missing GlobalCatchKeys.dll(this it's another "bug")), but logs for TV Server & import of xmltv it's not in there(maybe thats due to a bug in MPTestTool, so you have to manually copy them & attach to your post).

    Regards
    Roy
     

    ulf

    Portal Member
    October 13, 2007
    22
    2
    Home Country
    United States of America United States of America
    Thanks for replying.

    I would love to add the tv.logs file but it seems at the moment it is not being filled properly anymore. It always contains only one line. So after pressing the xmltv import button I see only this line:

    2008-04-21 11:23:49.375000 [1]: plugin:xmltv import done

    If I do something else, I see a different line, but always just one.
    Nothing else. I should not have TVServer uninstalled and reinstalled it.
    Will dig deeper in why this happens now, but the file is attached ;-).

    I also do not know how to imprt my tvguide.xml file into WebEPG.conf. This tool is just confusing.
    It would also be nice, if WebEPG-conf would be installed with the TV Server. I now have to work with another machine to run it.

    But, here comes my tvguide.xml as created by yapi2xml, which causes the problems.

    Thanks,
    Ulf
     

    ulf

    Portal Member
    October 13, 2007
    22
    2
    Home Country
    United States of America United States of America
    Hi Roy,

    after installing tvserver from scratch, it started filling the logfile again. I tried another xmltv import and the logfie from the failed attempt is attached. Also the tvguide.xml file I used this time.


    Thanks,
    Ulf
     

    ulf

    Portal Member
    October 13, 2007
    22
    2
    Home Country
    United States of America United States of America
    I believe I found the problem.
    The error log file shows that tag star-rating causes the errors, and when I look into the xml file that yapi2xml creates, the star rating output is in the form:

    <star-rating>
    <value>2.5</value>
    </star-rating>


    And it looks like the xmltv.dtd expects something like:
    <star-rating>
    <value>3/6</value>
    </star-rating>

    I probably have to contact the creator of yapi2xml after some tests.
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    Not sure how yapi2xml works & if MediaPortal can use it, have you tried with a smaller file with only 2 different channels?

    Regards
    Roy
     

    ulf

    Portal Member
    October 13, 2007
    22
    2
    Home Country
    United States of America United States of America
    Here the confirmation. If I search and replace all star-ratings with values like "1/5" then the import works.

    Thanks,
    Ulf
     

    ulf

    Portal Member
    October 13, 2007
    22
    2
    Home Country
    United States of America United States of America
    Thanks to the friends at GB-PVR I finally setup a reliable, free EPG grabber for the US:

    Originally Posted by zehd View Post
    You may want to try UltraXMLTV to process the yappi outut file and reformat the star ratings so that Media Portal works for you.

    I would help you get that happening for you, and be interested how it works. I always planned on supporting apps other than GB-PVR


    Here is the working configuration:

    - UltraXMLTV_Manager installed as scheduler service and to automate the transformation process.

    - yapi2xml as grabber to grab initial epg data from Yahoo

    - UltraXMLTV_Enhancer to move the star-rating value into the description.



    Mediaportal xmltv plugin will then scan for file changes of the output file from the scheduler/enhancer process and import the new data into mediaportal.



    One sidenote, I looked into the code of the xmltvimport plug-in for mediaportal, and the "star rating" parser section expects at some point a slash '/'. Without a slash it throws an exception. That should not happen.
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    Yeah i can confirm the issue with your TVguide.xml that it doesn't import if star-rating is in format x.x instead of x.x/10, the best will be if XMLTVPlugin handles it correct in both situations, nice that you have it working in another way ;)

    Regards
    Roy
     

    Users who are viewing this thread

    Top Bottom