Amp is displayed as & in EPG (1 Viewer)

hoppy

Portal Pro
March 10, 2006
65
0
Cambridge, UK
I'm getting the same error, complaining about startIndex cannot be less than zero.

Looking at what rtv and jonywee said its probably becuase the xml pluging is trying to parse "<value>12+, Geweld, Angst</value>" rather than "12+, Geweld, Angst". Probably just need to read the value element rather than the star ratting element.... Maybe the change from ReadString to ReadInnerXML caused this, although looking at the docs for ReadString it probably would have returned nothing at all from reading the star rating element :)
 

grubi

Portal Pro
June 16, 2007
1,216
80
127.0.0.1
Home Country
Germany Germany
Almost same error here. Using SVN snapshot 15757 (sept 06 2007):
tvguide.xml:Invalid XML File: StartIndex cannot be less than zero. Parameter name: startIndex

I narrowed the error to a single programme node in the xml file. It happens when I remove all star-rating nodes from the document, all 5K programs get imported successfully.

Hope this helps:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv date="20070907" generator-info-name="XMLTV" generator-info-url="http://www.tvgids.nl/">
	<channel id="1.tvgids.nl">
		<display-name>Nederland 1</display-name>
		<icon src="http://www.rtl.nl/service/gids/components/vaste_componenten/1.gif"/>
	</channel>
	<programme start="20070907220000" stop="20070907230000" channel="1.tvgids.nl">
		<title lang="nl">Pavarotti, eenzame hoogte</title>
		<desc lang="nl">In verband met het overlijden van Luciano Pavarotti, zendt de TROS als eerbetoon een documentaire over deze grootheid uit. Pavarotti is meer dan 's werelds bekendste operazanger. Hij is een internationaal fenomeen, een merknaam voor opera, bekend op ieder continent.

Met zijn plan om eind 2005 te stoppen met optreden, gaf Pavarotti in 2003 een televisie-crew uitgebreid de mogelijkheid een kijkje te nemen in zijn privéleven, zijn vele reizen en optredens. De documentaire volgt hem gedurende 2003 tijdens zijn optredens voor
enthousiast publiek in Italië, Duitsland, Mexico, Engeland, Rusland en de Verenigde Staten. Hij wordt achter de schermen gevolgd tijdens zijn afscheidsvoorstelling van Tosca in The Met in New York en tijdens zijn reünie met de Drie Tenoren in Bath. Samen met
José Carreras en Plácido Domingo vormde Pavarotti de meest succesvolste groep van klassieke zangers ooit. 
 
Verschillende bewonderaars van Pavarotti komen aan het woord, onder wie Bono, Michael Caine, Dustin Hofman en Lionel Richie. Er is exclusief beeldmateriaal van de doop van zijn baby en beelden van de enige ploeg die aanwezig mocht zijn tijdens zijn huwelijk. 
 
De film is een ongeëvenaard portret van een groot tenor die wereldwijd de ambassadeur was voor opera.

In verband met deze extra ingelaste documentaire vervalt de geplande uitzending van Flikken.</desc>
		<category lang="nl">Informatief</category>
		<url>http://www.tvgids.nl/programmadetail/?ID=6498988</url>
		<star-rating>
			<value>12+, Geweld, Angst</value>
		</star-rating>
	</programme>
</tv>

Good work. Should be enough information to track down the problem.
Let me take a look into it.

Regards,
grubi.
 

piba

Retired Team Member
  • Premium Supporter
  • October 26, 2006
    70
    5
    Home Country
    Netherlands Netherlands
    problem should be fixed in svn15807 tho star-rating should look like :
    <star-rating>
    <value>3/3</value>
    </star-rating>
     

    grubi

    Portal Pro
    June 16, 2007
    1,216
    80
    127.0.0.1
    Home Country
    Germany Germany
    problem should be fixed in svn15807 tho star-rating should look like :
    <star-rating>
    <value>3/3</value>
    </star-rating>

    Hmm working on the same issue simultaneously.
    Maybe you would like to take a look at what I have done.
    I think this is maybe more error prone if nodes contain subnodes in general.

    Regards,
    grubi.
     

    piba

    Retired Team Member
  • Premium Supporter
  • October 26, 2006
    70
    5
    Home Country
    Netherlands Netherlands
    I don't think nodes contain subnodes in general, just in this specific case it does.

    And i adding the content off all subnodes in a single result value would not give a meaningfull in most cases.

    If you want we could discuss on IRC what the best way is to interpret the xml file?
     

    grubi

    Portal Pro
    June 16, 2007
    1,216
    80
    127.0.0.1
    Home Country
    Germany Germany
    I don't think nodes contain subnodes in general, just in this specific case it does.

    And i adding the content off all subnodes in a single result value would not give a meaningfull in most cases.

    If you want we could discuss on IRC what the best way is to interpret the xml file?

    I simply want to get sure that after the function call you do not get lost at an subnode, similar to ReadInnerXML which was used previously. I discussed this also with "rtv" and he said he would consider using ReadInnerXML more save and I think he was proven right. However the fix you supplied works and so it's ok I think.

    Regards,

    grub.
     

    BKCH

    MP Donator
  • Premium Supporter
  • July 25, 2005
    287
    12
    Sydney
    Home Country
    Hi - I'm still having XMLTV import problems - I'm running build 15812 and my error is:

    9/09/2007 1:10:10 PM 10 XML tv import error loading E:\XMLTV\Server\tvguide.xml err:confused:tartIndex cannot be less than zero.
    Parameter name: startIndex

    I've found the entry that causes the problem - but I'm not sure why as it seems to conform:

    <programme channel="ABC-NSW" start="20070909030000" stop="20070909033000">
    <title>Gardening Australia</title>
    <desc>Gardening advice, knowledge and handy tips for all types of gardens and in all types of conditions across Australia.</desc>
    <credits>
    <director/>
    <actor>Peter Cundall</actor>
    </credits>
    <category>Gardening</category>
    <category>Outdoors</category>
    <category>Arts and Living</category>
    <star-rating><value>0/10</value></star-rating>
    <rating><value>G</value></rating>
    </programme>

    Any ideas? Thanks.
     

    BKCH

    MP Donator
  • Premium Supporter
  • July 25, 2005
    287
    12
    Sydney
    Home Country
    Hi - I stripped the programme entry down to the following and still get the error - it's definitely the <star-rating> entry that's causing the problem.

    <programme channel="ABC-NSW" start="20070909060000" stop="20070909062500">
    <title>Antonin Kubalek: Concert In Prague</title>
    <desc>Pianist Kubalek left then Czechoslovakia in 1968 after the Soviet army invaded. Here he returns to play in Prague for the first time since his departure for Canada. He plays pieces by Suk, Stravinsky and Smetana.</desc>
    <star-rating><value>2/3</value></star-rating>
    </programme>

    Full tvguide.xml attached
     

    lewi0146

    Portal Member
    May 14, 2007
    17
    0
    Home Country
    HI All,

    I too noticed this error earlier and saw that people were working on a resolution. I was excited this morning when I read that there was a fix and it worked. I hurriedly downloaded both the today's svn and tve3 and went through the install/upgrade process. However, a reboot or two later, the startIndex error is still there, eg from the tvserver error.log

    9/9/2007 2:35:24 PM 10 XML tv import error loading C:\Program Files\Team MediaPortal\MediaPortal\XMLTV\tvguide.xml err:confused:tartIndex cannot be less than zero.
    Parameter name: startIndex

    Please resolve this issue...the WAF is dwindling rapidly ;)

    cheers,

    Trent
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Hope this helps:

    Code:
    		<star-rating>
    			<value>12+, Geweld, Angst</value>
    		</star-rating>


    Something else is wrong here (cannot check right now) ; either the nl-grabber you're using or its EPG provider in general is misusing the "star-rating" field. An "USK rating of 12 for violence" should be inserted into the DB-field "Classification" and if it always supplies the age then additionally fill "parentalRating" with that.
     

    Users who are viewing this thread

    Similar threads

    done: Loading...
    done: Loading...
    Hi. I have a problem with a WebEPG grabber I'm trying to do. The problem is that the site returns a json-file and I cant get my...
    Replies
    25
    Views
    4K
    I'm using MP1 Ukraine ( as a side issue Trend antivirus says later versions are ransomwear ) and I've used MP for many years. Have I missed something all this time? Is there a way of marking recordings as favourites, and an easy way to display them? Thank you
    I'm using MP1 Ukraine ( as a side issue Trend antivirus says later versions are ransomwear ) and I've used MP for many years. Have...
    I'm using MP1 Ukraine ( as a side issue Trend antivirus says later versions are ransomwear ) and I've used MP for many years. Have...
    Replies
    0
    Views
    475
    And this is the follow-up thread, which includes log files: PiP audio problem
    And this is the follow-up thread, which includes log files: PiP audio problem
    I just updated from 2.4. Update did not conserve my channels or epg plug-in or anything, looks like, which of course was a...
    Replies
    5
    Views
    636
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who wrote that code know what the log entries mean, but those developers have long since retired from the MP team.) I regret to say that I think that you will have to use the "brute force" method to track down...
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who...
    Sometimes when displaying the OSD whilst playing a recorded TV show the video freezes and the sound continues for about 30 seconds...
    Replies
    1
    Views
    659
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very informative and detailed responses. I will take your advice and monitor the Scheduled recordings list for the discrepancies you have described. Cheers.
    @CyberSimian As I have just posted in the MP2 subforum I will stay with MP1 for the time being. Many thanks for all your very...
    I am in Australia. My problem is with recorded tv programs. Most times the program title and info are correct but quite often the...
    Replies
    36
    Views
    3K
    Top Bottom