Helper script for missing or dummy EPG entries (1 Viewer)

Aquarius

MP Donator
  • Premium Supporter
  • November 23, 2004
    347
    7
    NRW
    Home Country
    Germany Germany
    Hi all,
    here is a little template script that creates weekly EPG- entries.

    This script helped me in avoiding 3 annoying problems in MP:

    - Manual, weekly recordings did not record when no EPG is present: Powerscheduler started the machine, but no recording was started. A long term bug documented in various threads.

    - Create entries if no EPG is available at all as discussed in this thread:
    https://forum.team-mediaportal.com/fill_program_gaps-t22843.html

    The solution provided here ... https://www.team-mediaportal.com/files/Download/SystemUtilities/Dummy_EPG/

    ... did not fit for my needs.

    - Identify recordings from "channel in a channel": The main program is interrupted and some (local) broadcasting is taken place which is not covered by the EPG. The EPG is only available for the outer channel and therefore the naming of the recording is also always taken from there. This makes identifying, storing and
    series management of the recording difficult.

    This script creates entries for one particular weekday. You define on which weekday your recording starts and the script calculates the next upcoming weekday regardless when the script was invoked.

    Look for the 'Change here' comments to change to your needs.

    The script should be started by Windows- scheduler and should not conflict in timing with the WEBepg process as it overrides TVGUIDE.XML.

    I also thought about just appending the lines to a fresh generated TVGUIDE.XML, but first its an XML- structure file, where simply adding a few lines to the end of the file does not make sense and second, TVGUIDE.XML is read immediately after its created and is therefore locked.

    I'm not a VB- programmer, so the code might look a bit clumsy to a VB- Guru.
    Feel free to modify and don't forget to post back your improvements.


    Regards
    /Gerd
     

    Users who are viewing this thread

    Top Bottom