[confirm] - XMLtv: in case of error data for one program - full TVguide is not imported

Discussion in 'MediaPortal 1.1.0 RC 1 & 2' started by rivera, May 6, 2010.

  1. rivera
    • Premium Supporter

    rivera Retired Team Member

    Joined:
    December 1, 2008
    Messages:
    237
    Likes Received:
    21
    Ratings:
    +21 / 0
    Home Country:
    Russian Federation Russian Federation
    MediaPortal Version: 1.1.RC1
    MediaPortal Skin: Blue-3
    Windows Version: WinXP-SP3
    CPU Type: Intel Core 2 Duo E8400 3.0GHz
    HDD: WD 1000Gb
    Memory: 2x1024 DDR2
    Motherboard: ASUS P5K premium
    Video Card: ASUS EN9600GT Silent/HTDI 512
    Video Card Driver: 196.21
    MPEG2 Video Codec: Cyberlink Video/SP Decoder (PDVD 8)
    MPEG2 Audio Codec: ffdshow
    h.264 Video Codec: MPC decoder
    HTPC Case: Silverstone CW03
    Power Supply: Corsair VX450W
    Remote: Soundgraph
    TV: Pioneer PDP-5080XA
    TV - HTPC Connection: DVI-HDMI


    I am using TV server for IPTV and XMLtv for importing TV guide.
    In XMLtv you have to go through the following steps:
    - download TV guide data from some site
    - associate each registered TV channel with a corresponding channel present in imported TV guide
    - import schedule for each channel
    Step 2 can be done only once, steps 1 & 3 must be done regularly and can be done automatically.

    Once during step 3 I got an error which was displayed in screen and also presented in "error.log":
    Code (Text):
    1. 2010-05-06 05:33:35.812500 [SetupTv(1)]: XML tv import error loading C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal TV Server\xmltv\tvguide.xml err:Параметры Year, Month и Day описывают непредставимое значение DateTime.
    2.     в System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
    3.    в TvEngine.XMLTVImport.CorrectIllegalDateTime(Int64 datetime)
    4.    в TvEngine.XMLTVImport.Import(String fileName, Boolean deleteBeforeImport, Boolean showProgress)
    Part of message from Russian means:
    Code (Text):
    1. Values Year, Month and Day represent invalid value of DateTime.
    As a result - in MediaPortal I did not have TV guide at all - for each channel it was written "Данные недоступны" (means "Data not available").



    So, there was a problem in downloaded "tvguide.xml".
    I checked this file and found the following string:
    Code (Text):
    1. <programme start="00000000000000 +0300" stop="20100508234000 +0400" channel="563">
    2. <title lang="ru">bla-bla-bla</title>
    3. <desc lang="ru">bla-bla-bla</desc>
    4. <category lang="ru">bla-bla-bla</category>
    5. </programme>
    The value "00000000000000" was wrong.
    Also, this programme was for channle which was not registered in MP and so was not used :).
    I deleted these strings from "tvguide.xml" - and the import was done successfully.

    So, my questions are:
    1. Why does MP (means - XMLtv plugin) import programmes for channels wich are not used?
    2. Why broken data for some programme cause total break of import?
    3. Why can't MP replace invalid time with some estimated value automatically dependently on timings of "neighbour programmes" ?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Andrusha777

    Andrusha777 Portal Pro

    Joined:
    December 3, 2009
    Messages:
    132
    Likes Received:
    3
    Ratings:
    +3 / 0
    Home Country:
    Russian Federation Russian Federation
    MediaPortal Version: 1.1.RC2
    MediaPortal Skin: Blue-3 Wide
    Windows Version: WinXP-SP3
    CPU Type: Intel Core Duo E6500
    HDD: WD 2000Gb
    Memory: 1x2048 DDR2
    Motherboard: ASUS P5KPL-AM EPU
    Video Card: Palit Sonic GT 220
    Video Card Driver: 197.45
    MPEG2 Video Codec: Cyberlink Video/SP Decoder (PDVD 9)
    MPEG2 Audio Codec: ffdshow
    h.264 Video Codec: MPC decoder
    TV: Samsung LE-37B530P7W
    TV - HTPC Connection: HDMI-HDMI

    I have exactly the same problems with xmltv. Althoug the same error message "Values Year, Month and Day represent invalid value of DateTime." and whole programm do not import. After deleting the wrong string from xml file, the program goes to import by right way.
     
    • Like Like x 1
  4. Andrusha777

    Andrusha777 Portal Pro

    Joined:
    December 3, 2009
    Messages:
    132
    Likes Received:
    3
    Ratings:
    +3 / 0
    Home Country:
    Russian Federation Russian Federation
    may be we need an XML file? I will attach it.
    U can simply try to import this file in MP via XMLTV Plugin. Search in file those string: <programme start="00000000000000 +0300" stop="20100516020000 +0400" channel="243">
    after deleting it, import goes OK.
     
  5. rivera
    • Premium Supporter

    rivera Retired Team Member

    Joined:
    December 1, 2008
    Messages:
    237
    Likes Received:
    21
    Ratings:
    +21 / 0
    Home Country:
    Russian Federation Russian Federation
    Actually, in most cases you may not to delete these lines.
    You can just put a time of the previous programme:
    Code (Text):
    1. Programme 1: Start1 - End1
    2. Programme 2: Start2 - End2
    If Start2=0000000, then you can put there End1, and vice versa
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!