Idea: avoid import of defective TvGuide.xml files (1 Viewer)

nino

Portal Member
October 29, 2007
33
1
Germany Germany
Hi,

Sometimes the TvGuide.xml is corrupted or empty if the internet connection was down or if the tvinfo/tvtoday/... site was down while WebEpg tried to update. XmlTv imports the corrupted TvGuide.xml anyway resulting in empty EPG data.

In order not to lose previously imported EPG data in such a case it would be nice to if XmlTv avoided importing defective TvGuide.xml files. An easy (?) solution would be a configuration option for a minimum file size for TvGuide.xml. XmlTv could then skip a potential import if TVGuide.xml is smaller than this size.

Does this make sense and would it be possible to add such a feature?


Thanks a lot!

nino.
 

mmg3k

Portal Member
August 24, 2005
16
0
France
France France
Hi there,

I like the idea of clearing the old TV stuff in the DB. Another way would to import without clearing the existing and if it is successfull then redo it but this time clearing the existing. Even better would be checking teh consistancy of the XMLTV before importing...

Martin
 

nino

Portal Member
October 29, 2007
33
1
Germany Germany
I found a simple solution:
Let XmlTV import TVGuide.xml from somewhere else than ...\Team MediaPortal\MediaPortal\xmltv\TVguide.xml and run a a simple batch script as a windows task which only copies a TVGuide.xml (written by WebEPG) to that place if it is large enough.
I'm quite happy with this as it mantains a valid EPG when an WebEPG update failed.
 

revs

MP Donator
  • Premium Supporter
  • February 1, 2007
    1,274
    72
    The Sauce of Worcester
    Wales Wales
    I have a DOS batch file that runs the xml file against a validator. If invalid, then the file is rejected/downloaded again. I'll post later if i remember.
     

    benjerry

    MP Donator
  • Premium Supporter
  • September 26, 2007
    167
    10
    Netherlands Netherlands
    I have a DOS batch file that runs the xml file against a validator. If invalid, then the file is rejected/downloaded again. I'll post later if i remember.
    Hi there. I would be very much interested in your batch file as I would like to incorporate it in my current scripts, based on mc2xml.

    I included my personal grabbing sollution in the attachment. I don't know if I re-invented the wheel, but perhaps usefull.
     

    revs

    MP Donator
  • Premium Supporter
  • February 1, 2007
    1,274
    72
    The Sauce of Worcester
    Wales Wales
    I updated my version of xmltv yesterday (as channels started to go missing) and that has broken my xml validation process. If I get it working again then i'll post it. However xmltv seems to do a much better job at downloading the listings successfully now, so i may not even need the validation.
     

    nino

    Portal Member
    October 29, 2007
    33
    1
    Germany Germany
    Hi -

    Is it be possible to detect by xml validation of TvGuide.xml that no or only incomplete guide data has been downloaded (for example because the tvinfo or tvtoday site was down)?
    Or would the resulting TvGuide.xml file be valid (even though very small)?

    Cheers,

    nino.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    T [solved] Any idea where Channel 107 (DVB-T2) BBC News HD (and others!) have gone??? Installation, configuration support 12
    Rob Hexenmeister Erratic volume bars and development ideas General Support 17
    morpheus_xx Ideas for MP 2.3 MediaPortal 2 52
    T My trusted TBS 6922 DVB-S2 card won't work in new system....any ideas please!!? General Support 3
    Lehmden Core Ideas about TVE feature developments TV Engine 8
    L TV-Series unvollständiger Import Plugins & Erweiterungen 5
    toricred Using TMM, How to Stop Importer From Going to The Movie Database for Data General 1
    Lichloathe MP2 importing keyart instead of poster General 0
    P Recordings not showing up unless re-imported and not possible to delete General 0
    C Importer works super slow My TVSeries 5
    C Imported media doesn't show up immediately? General 1
    X Recording import hängt Allgemeines Support- und Diskussionsforum 0
    J [fixed] Import issue with alternate movie title matching the name of another movie Submit: Bug Reports 7
    B xmltv - cannot import tvguide.xml australia Installation, configuration support 0
    B [solved] tvguide.xml not importing australian channels Electronic Program Guide 10
    J [fixed] Importer confused on specific movies with the same title, different years and different NFO's Submit: Bug Reports 3
    azzuro [fixed] [WIP MP2.3] - Audio files not imported to MP MediaPortal 2 18
    thepahakurki TVDB import not working My TVSeries 3
    T I cannot get a basic media import-what is the best configuration? General 10
    L TV-Series kein Import Plugins & Erweiterungen 6
    J [fixed] [MP2-833] 2.2.2 server crash during import Submit: Bug Reports 50
    D Ripped movies not importing unless IMDB code is included in folder name General 4
    R [solved] Moving pictures importer wont add files from a removable drive. Is there a work around ? Moving Pictures 8
    MausWiesel LightsOut-Connector für MP2? Allgemeines Support- und Diskussionsforum 9
    fredco [solved] Large import not working Moving Pictures 15
    Similar threads

























    Top Bottom