Tvguide import stand-alone app (1 Viewer)

hwahrmann

Development Group
  • Team MediaPortal
  • September 15, 2004
    4,630
    2,462
    Vienna, Austria
    Home Country
    Austria Austria
    wewe said:
    well, this is what I would expect but believe it or not: it imports the EPG again and again.

    i hate to admit it, but you're right. :lol: :lol:

    Was able to reproduce it. Funny that i never noticed it before.
    The reason is, that for some case mediaportal.xml is not updated.
    Search for the string "tvguide". Within this section you'll find an enty named "date", which should be the date of tvguide.xml.

    It should be set after importing the data. This is what i saw in the code. For some reason it don't.
    I have a date of 20.04.2006.
    After that it was never updated.

    If i have some time, i'll investigate later today and open a bug report.

    For those of you, who want to update the database in Batch, you may use TVGuideScheduler as i have indicated above.
    simply execute:
    Code:
    TVGuideScheduler.exe /FILE xmltv\tvguide.xml

    So if you wake up the PC to grab the EPG, then you can insert the code above in your batch file, which will update the databasr and then you could shutdown the PC again.
    The EPG will not be updated again, provided that we correct the error with the data not being written to mediaportal.xml

    regards,

    Helmut
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,630
    2,462
    Vienna, Austria
    Home Country
    Austria Austria
    Ok, ran some test.

    So if you don't exit MP, while importing the xmltv, then mediaportal.xml gets updated correctly.

    When you exit MP while importing, thus leaving the thread running, then mediaportal.xml is NOT updated.
    So next time it thinks that tvguide.xml is new and starts the import again.
    This seems to be the way how mediaportal.xml is accessed.

    Workaround:

    1. Leave MP running, while the file is imported.
    2. use TVGuideScheduler.exe to do the import outside of MP
     

    wewe

    Portal Pro
    August 3, 2005
    362
    0
    65
    Herxheim
    Home Country
    Germany Germany
    well according to my experience you really have to stay in the EPG (!!) and wait until it is imported. Just starting MP on and be somewhere is not enough ...

    Can you confirm that as well?

    thanks+regards
    WeWe
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    I can confirm this behaviour. I think it also depends on the size of the XML-file. Mine is quite big (8 - 9 MB)
    24-28 MB here (TV movie data) taking ~25 minutes to import

    For me it wasn't a big problem since TV stuttering is gone with timeshift enabled.
    But then many other people will not have a dedicated "Timeshift & Recording disk" and suffer from I/O-load then..

    well according to my experience you really have to stay in the EPG (!!) and wait until it is imported. Just starting MP on and be somewhere is not enough ...

    Can you confirm that as well?
    This behaviour is almost impossible due to the way it is coded. I see the times aren't updated if you exit MP to early but the import happens always correctly.

    Maybe you killed MP before and damaged the database structure?
    Try deleting (backup before) your TVDatabase.
     

    smnnekho

    Retired Team Member
  • Premium Supporter
  • February 6, 2006
    507
    7
    42
    Germany
    rtv said:
    24-28 MB here (TV movie data) taking ~25 minutes to import

    since you also live in germany, may i ask what kind of WPG data you're using? 24MB suggests a very detailed one, and i like it as detailled as even possible (-;

    i#
    m using the TVmovie clickfinder with tvm2xml right now and have ~ 12MB.

    mmh, maybe you have just more channels?? (-;
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    I use tv movie's data, too ;)

    ~ 25 channels _not_ using "short descriptions" but some additional entries like sound format, country, year, etc..
     

    bigj

    Portal Pro
    January 10, 2005
    245
    1
    I use this batch file below.

    Copy into file "WebEPGUpdate.bat" in WebEPG folder.
    Then just call WebEPGUpdate.bat on bootup (I do a scheduled reboot,defrag,epg load and restart each day in the early hours).
    I just added the "/FILE ..." option to my script, but to be honest I'm pretty sure it works without this (defaults to xmltv\TVguide.xml)

    If you run this then you'll see the WebEPG.log updated *and* epg.log *and* MediaPortal.log - and witness the tv database journaling.

    ---- WebEPGUpdate.bat ----
    @echo off
    echo Running WebEPGUpdate
    set MPROOT="C:\Program Files\Team MediaPortal\MediaPortal"
    cd %MPROOT%
    echo Starting WebEPG.exe
    start /wait WebEPG.exe
    echo Starting TVGuidescheduler.exe
    start /wait TVGuideScheduler.exe "/FILE %MPROOT%\xmltv\TVguide.xml"
    echo Complete.
     

    Waltz

    Portal Pro
    December 14, 2004
    202
    0
    Kiel, Germany
    Hi all,

    my HTPC suffers from a similar problem:
    When I enter the EPG, MediaPortal has to load the program guide into RAM (at least I think this is what it's doing) and is unusable for about 15-20 seconds. I don't think this is the same "importing" you are talking about here since this takes several minutes if I understand you correctly. I'm updating the EPG every night with WebEPG and make a batch file import using the "/FILE" argument I found in this discussion (this didn't change anything for me so I think WebEPG does the import on its own).
    I'm using a 7-day-program guide with full descriptions of about 25 channels.

    After the next restart of MP, when entering EPG again, it does the same - freezing for 20 seconds. Since my HTPC restarts MP automatically after wakeup from hibernation (this solves some other issues for me), I see this everytime I use my HTPC. This is a bit annoying, being unable to use the system for some time when I just want to browse the program guide.

    Is there a way to pre-load the EPG while MP starts, or to load just the day I'm looking at in the EPG and not the whole thing at once?
    How long is this loading time for you?

    - Waltz
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    strongly depends on memory:
    with 448 MB of RAM it is like 25 seconds for my full blown EPG
    with 1024 MB it is barely noteable - maybe 3-4 seconds..
     

    Users who are viewing this thread

    Top Bottom