Update EPG Automatically? (1 Viewer)

gonzo90017

Portal Pro
September 3, 2012
238
26
25
Home Country
United States of America United States of America
How can I have the EPG update automatically. I'm using XMLTv plugin along with mc2xml. I wrote a batch file that runs every night using Windows Task Scheduler and downloads the latest listings. The problem is that MediaPortal does not check to see if there is a new tvguide.xml. The only way to update the EPG in MediaPortal is by doing it manually:
TV Server Configuration> Plugins> XMLTv> and click on Force Import.
 

Attachments

  • xmltv.png
    xmltv.png
    24.9 KB

gonzo90017

Portal Pro
September 3, 2012
238
26
25
Home Country
United States of America United States of America
I set up my EPG about 2 weeks ago and have restarted the TV Server numerous times since then for other reasons and it has never worked.
 

robbo100

Retired Team Member
  • Premium Supporter
  • May 5, 2009
    1,291
    308
    UK
    Home Country
    United Kingdom United Kingdom
    If you use the TV server plugin called power scheduler there is an option to grab epg data at specific times. That seems to work for me.
     

    gonzo90017

    Portal Pro
    September 3, 2012
    238
    26
    25
    Home Country
    United States of America United States of America
    I also have Power Scheduler installed. Could you post a pic to see how you have the epg part configured?
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    I have a script that creates a new tvguide.xml everyday and tvserver-xmltv plugin imports it automatically for me. not sure how long the delay is, but it does it every day.
     

    RonD

    Test Group
  • Team MediaPortal
  • December 20, 2011
    911
    278
    SillyValley CA
    Home Country
    United States of America United States of America
    a few questions and comments.

    1. Is the windows scheduled task is running and updating the tvguide.xml file? Do the modified times on tvguide.xml and mc2xml.dat files match when you are running the batchfile? My batch file has some extra debug steps to write a log file when mc2xml runs. You need to tweak the drive/path for your system. I use this file with MePo PowerScheduler > EPG to run the batch file. I don't use a windows task.

    L:
    cd "\MePo\xmltv"
    echo %date% %time% >> mc2xml_log.txt
    mc2xml.exe -o tvguide.xml >> mc2xml_log.txt
    echo %date% %time% >> mc2xml_log.txt

    2. If you open the windows ScheduledTask tool, select your task and view properties, does the history show the task is running correctly? If you select your task and press "run" does the task run without problems?

    3. If you stop/start the tv server and look at your tv.log file, you should see entries showing the xmltv plugin is started. Assuming your system goes to sleep there should also be tv.log entries when the system exits sleep and starts running. I see the following.

    ## TV Server stop/start
    2012-10-29 10:13:10.203355 [TVService(6)]: TV Service: Plugin: XmlTv started
    2012-10-29 10:13:10.206356 [TVService(6)]: plugin: xmltv started
    2012-10-29 10:13:10.211356 [TVService(6)]: xmltv: Registered xmltv as PowerEventHandler to tvservice
    2012-10-29 10:13:10.218356 [TVService(6)]: TV Service: Plugins started
    2012-10-29 10:13:10.221357 [TVService(6)]: TV Service: Plugin: XmlTv started all
    2012-10-29 10:13:10.226357 [TVService(6)]: XmlTvImporter: registered with PowerScheduler EPG handler

    ## TV server resume from sleep
    2012-10-29 03:08:15.764758 [PowerEventThread(9)]: xmlTV plugin resumed
     

    gonzo90017

    Portal Pro
    September 3, 2012
    238
    26
    25
    Home Country
    United States of America United States of America
    For some reason Task Scheduler wasn't running the .bat properly. Even clicking on Run Now wouldn't work. But I did manage to get it working using PowerScheduler++. In case someone runs into this issue.
    This is what my .bat file looks like:
    Code:
    c:
    cd "\MediaWah\Files\mc2xmlMP"
    mc2xml.exe -o tvguide.xml

    And this is how I configured PowerScheduler++:
    Note that PowerScheduler uses the 24hr clock. So 2:32 o'clock is actually 2:32 am.
     

    Attachments

    • PowerSchedulerEPG.PNG
      PowerSchedulerEPG.PNG
      76.4 KB

    Users who are viewing this thread

    Top Bottom