What clever things does "TVGuideScheduler.exe" do? (1 Viewer)

Taipan

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    I gather, from playing around, that "TVGuideScheduler.exe" will import the current "TVGuide.xml" file contents to the TV database and that I can schedule it to run just after my "TVGuide.xml" file has been updated by "WebEPG.exe".

    But, does it do any other clever things, like check for "Every week on this channel" scheduled recordings and mark them to be recorded with the new TV data that was just added?

    I ask this question because I use PVR Scheduler to wake my PC for scheduled recordings and I have been trying to figure out how to set it up so that if I was away for a few weeks, that all the "Every week on this channel" scheduled recordings were done correctly.

    For example, I have WebEPG scheduled to run every Friday afternoon and it gets TV data for the next 7 days, through to the following Friday midnight. But, if I have a TV program that is scheduled to be recorded on every Saturday, I have to make sure that My TV in MediaPortal is run just after the WebEPG update to import the new TV data and to schedule the new recordings. So, I am hoping that I could setup "TVGuideScheduler.exe" to do that for me while I am away?
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,630
    2,462
    Vienna, Austria
    Home Country
    Austria Austria
    Taipan,

    TVGuideScheduler does exactly what you need.
    And you only need to enter the MyTV EPG only ONCE after starting MP.
    Then the monitoring of xmltv is setup and whenever now wegepg does an update of the file it is imported.

    regards,

    Helmut
     

    Taipan

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    Hi Helmut,

    I should have also explained that I have the PC in standby mode whenever MediaPortal is not in use, as I have PVR Scheduler configured to "resume" the PC for a WebEPG update, and then put the PC back to standby mode as soon as WebEPG has finished. MediaPortal is not running at all during this phase.

    So, what I would also like to be able to do after WebEPG has finished, is to import the new TVGuide.xml into MediaPortal and have any "Record every week on this channel" programs marked so the PVR Scheduler knows when to next resume the PC and start MediaPortal to record the scheduled program.

    I figured that if I run "TVGuideScheduler.exe" immediately after WebEPG has completed, then the new TV program data will be imported into the TV database.

    But, at what point are any recurring scheduled recordings marked in the database - is this step also done by "TVGuideScheduler.exe", or do I have to run MediaPortal My TV for any recurring scheduled recordings to be "marked"?

    I hope my explanation makes sense ..... :confused:
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,630
    2,462
    Vienna, Austria
    Home Country
    Austria Austria
    Hi Taipan,

    i'm afraid, yes you need MP running in order for the recurring recordings to be marked.

    regards,

    Helmut
     

    Taipan

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    yes you need MP running in order for the recurring recordings to be marked.

    Is it sufficient for Mediaportal to be running in the home screen, or does My TV have to be on for the recurring schedules to be updated against the new EPG data?

    This is what I would like to be able to do (automagically):-

    1. Have PVR Scheduler wake the PC and launch WebEPG to grab the next 7 day's TV schedule
    2. When WebEPG has finished, launch TVGuideScheduler.exe to update the TV database from the new TVGuide.xml
    3. When TVGuideScheduler.exe is finished, have MediaPortal check the new data for any recurring schedules and mark the programs to be recorded.
    4. Synchronise PVR scheduler with the new recording schedule times
    5. Have PVR scheduler put the PC back to standby mode.

    Step 3. has me stumped though :confused: .....

    Do you have any suggestions how I might be able to do that step from a batch file, or something similar?
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,630
    2,462
    Vienna, Austria
    Home Country
    Austria Austria
    Taipan,

    if you have MP running then you don't need to do anything of the above.
    MP constantly montoring the TVGuide.xml file in the xmltv folder for changes.
    WebEPG updates this file and MP will automatically process the new information.
    No need to run TVGuideScheduler.

    If you decide to shutdown MP when going into standby mode, then you would need to do the steps you described above.
    You need to have a cmd file, which does;
    1. WebEPG
    2. TVGuideScheduler.exe
    3. Start MP: When starting MP, it's internal Recording Scheduler is invoked, which cheks the EPG for recurring recordings
    4. afaik PVR-Scheduler is synchronised every minute

    When PVR-Scheduler sends the pc into standby, it should end mp again.
    You need to figure out the amount of time your pc needs to be up to perform tasks 1-4 from above.

    regards,

    Helmut
     

    Taipan

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    3. Start MP: When starting MP, it's internal Recording Scheduler is invoked, which checks the EPG for recurring recordings
    OK, so I don't have to have My TV on for MediaPortal to pickup the recurring recordings - I just need to keep MediaPortal running (before going to standby) for sufficient time to complete the "check all recurring schedules" time and for PVR Scheduler to be synchronised.


    :D for clearing this up for me.
     

    jsjs

    New Member
    October 24, 2006
    3
    0
    Hamburg
    Home Country
    Germany Germany
    You need to have a cmd file, which does;
    1. WebEPG
    2. TVGuideScheduler.exe
    3. Start MP: When starting MP, it's internal Recording Scheduler is invoked, which cheks the EPG for recurring recordings
    4. afaik PVR-Scheduler is synchronised every minute


    Hello Helmut,

    what happens, if MP is already running while executing the above cmd file? Is the internal Recording Scheduler only invoked at MP-startup, or does it check the EPG for recurring recordings automatically?

    regards

    Jürgen
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,630
    2,462
    Vienna, Austria
    Home Country
    Austria Austria
    Jürgen,

    if MP is running, then you don't need to execute TVGuidescheduler.exe
    Webepg writes a new xmltv file and MP detects that it has been modified and starts importing it.

    Note: This works only, if you have entered at leat ONCE the EPG after starting MP. Otherwise the new xmltv is detected, when you leave and start mp again.

    regards,

    Helmut
     

    Users who are viewing this thread

    Top Bottom