Amp is displayed as & in EPG (1 Viewer)

grubi

Portal Pro
June 16, 2007
1,207
87
127.0.0.1
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.

@rtv:

You are rigth. It is the ParseStarRating method which fails as it expects a format like "5.2/10" which obviously is not provided. I will fix it and post it here.

grubi.
 

grubi

Portal Pro
June 16, 2007
1,207
87
127.0.0.1
Home Country
Germany Germany
Attached is a zip archive which contains an updated XmlTvImport.dll and the new ParseStarRating method.
Please check if the problem is resolved.

rtv: can you replace the existing ParseStarRating method with the one of the archive?
BTW: I was not able to build the latest XmlTvImport.cs from the SVN due to syntax errors
(e.g. exception is at one place written lower case) which my compiler do not like. Maybe you
can check that as well.

Regards,
grubi.
 

BKCH

MP Donator
  • Premium Supporter
  • July 25, 2005
    287
    12
    Sydney
    Home Country
    Hey lewi0146 - this issue was effecting my WAF as well so I just wrote a little python script to strip the star-ratings out of tvguide. let me know if you'd like a copy.
     

    grubi

    Portal Pro
    June 16, 2007
    1,207
    87
    127.0.0.1
    Home Country
    Germany Germany
    Hey lewi0146 - this issue was effecting my WAF as well so I just wrote a little python script to strip the star-ratings out of tvguide. let me know if you'd like a copy.

    Can you check if my previously attached dll solves the problem?
    Thx.

    grubi.
     

    piba

    Retired Team Member
  • Premium Supporter
  • October 26, 2006
    70
    5
    Home Country
    Netherlands Netherlands
    grubi thanks for looking into it further! I made a really dumb mistake with not checking properly if it still compiled. :sorry:

    I did add your new ParseStarRating function that properly checks if the format is as expected. :D
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    But that only cures the symptom... The bug itself has to be fixed as well - this site's grabber shouldn't use the starrating field at all..
     

    grubi

    Portal Pro
    June 16, 2007
    1,207
    87
    127.0.0.1
    Home Country
    Germany Germany
    But that only cures the symptom... The bug itself has to be fixed as well - this site's grabber shouldn't use the starrating field at all..

    Of course you are right. But we should do anything possible that malformed input from external programs do not break our own programs. We cannot fix the bugs of other programs nore do I really want to do this ;)

    grubi.
     

    lewi0146

    Portal Member
    May 14, 2007
    17
    0
    Home Country
    i replaced (renamed the old one) XmlTvImport.dll, but it still had the same error

    9/9/2007 10:29:15 PM F 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

    cheers,

    Trent

    PS. I'm pretty sure this is the programme it spits the chewy on (it says it import 2 shows and this is the 3rd). I hope this helps

    <programme start="20070909000500 +0930" stop="20070909021000 +0930" channel="Seven-SA">
    <title>The Learning Curve</title>
    <desc>A modern-day Bonnie and Clyde story set in the neon-lit underworld of LA. Consumed by love and greed, a pair of lovers live fast and free until crime and corruption threaten to destroy them.</desc>
    <credits>
    <director>Eric Schwab</director>
    <actor>Carmine Giovinazzo</actor>
    <actor>Norbert Weisser</actor>
    <actor>Monet Mazur</actor>
    <actor>Tim Ransom</actor>
    <actor>Rod Roesser</actor>
    <actor>James Eckhouse</actor>
    <actor>Allan Wasserman</actor>
    <actor>Harry Hutchinson</actor>
    </credits>
    <category>Crime</category>
    <category>Movies</category>
    <star-rating><value>5/10</value></star-rating>
    <rating><value>AV</value></rating>
    <date>2001</date>
    </programme>
     

    grubi

    Portal Pro
    June 16, 2007
    1,207
    87
    127.0.0.1
    Home Country
    Germany Germany
    i replaced (renamed the old one) XmlTvImport.dll, but it still had the same error

    9/9/2007 10:29:15 PM F 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

    cheers,

    Trent

    PS. I'm pretty sure this is the programme it spits the chewy on (it says it import 2 shows and this is the 3rd). I hope this helps

    <programme start="20070909000500 +0930" stop="20070909021000 +0930" channel="Seven-SA">
    <title>The Learning Curve</title>
    <desc>A modern-day Bonnie and Clyde story set in the neon-lit underworld of LA. Consumed by love and greed, a pair of lovers live fast and free until crime and corruption threaten to destroy them.</desc>
    <credits>
    <director>Eric Schwab</director>
    <actor>Carmine Giovinazzo</actor>
    <actor>Norbert Weisser</actor>
    <actor>Monet Mazur</actor>
    <actor>Tim Ransom</actor>
    <actor>Rod Roesser</actor>
    <actor>James Eckhouse</actor>
    <actor>Allan Wasserman</actor>
    <actor>Harry Hutchinson</actor>
    </credits>
    <category>Crime</category>
    <category>Movies</category>
    <star-rating><value>5/10</value></star-rating>
    <rating><value>AV</value></rating>
    <date>2001</date>
    </programme>

    The entry you post looks correct. Did you restart the TVService otherwise the renamed dll will still be used.

    grubi.

    wrong dll was attached to archive - should work now
     

    Users who are viewing this thread

    Similar threads

    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue stemmed from the corruption of one or both of the mc2xml.dat and/or mc2xml.exe files, for an unknown reason. Consequently, even though the tvguide.xml file appeared to be updated, its content kept being an...
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue...
    I was having a problem with the EPG on MP2 1.4.1 (although it used to run without any issues for a while). So I installed MP2 1.5...
    Replies
    8
    Views
    2K
    Hey CyberSimian you nailed it! Looks like the secret is:- After EPG Collector has Run and provided the TVGuide.xml Open MediaPortal - TV Server Configuration "Force Import" on the Plugins/Xmltv/General dialogue, (ignore the status) Go to the Mappings dialogue and Load/Refresh and Save a Group - (It does not appear to matter which...
    Hey CyberSimian you nailed it! Looks like the secret is:- After EPG Collector has Run and provided the TVGuide.xml Open...
    Hi everyone I posted in the EPG section a while back concerning MediaPortal EPG using EPG Collector and MediaPortal xmltv plugin...
    Replies
    51
    Views
    13K
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem. Disabling the option "Single seat setup: force RTSP usage" under "TV/Radio", "Advanced Options" resolved the issue. After I disabled this option, I was able to delete the recordings the first time...
    I was just tinkering with a few settings in the MediaPortal configuration and am happy to have found the cause of the problem...
    Deleting recordings sometimes doesn't work. Neither the 0 button nor the Info/Delete button works. Nothing happens at all with...
    Replies
    6
    Views
    505
    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    I have added a scheduled task to MariaDB to delete all entries with the same start and end date
    Hello, I'm encountering an issue after importing EPG data into the TV-Server/Database. The Problem: After importing an XMLTV...
    Replies
    7
    Views
    2K
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra benefit is that it collects from the Sky platform so it will give EPG for all the FreeSat channels plus the unencrypted movie channels on the Sky platform. It also allows me to pick the channels dedicated...
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra...
    Hi everyone, I hope you are all well My Mum's Mediaportal lost it's marbles thanks to Microsoft update, (even though I had update...
    Replies
    2
    Views
    2K
    Top Bottom