Amp is displayed as & in EPG (1 Viewer)

grubi

Portal Pro
June 16, 2007
1,216
80
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,216
80
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,216
    80
    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,216
    80
    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,216
    80
    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

    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
    638
    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