RadioTimes and MyDigiGuide XML updater (1 Viewer)

yourmumquake

Portal Member
June 6, 2007
22
4
Home Country
United Kingdom United Kingdom
I hope this is not considered a double post (https://forum.team-mediaportal.com/...-tv-grabber-channels-dat-update-script-73338/) but felt the original Title does not reflect this new program which updates both the RadioTimes and MyDigiGuides xml files.

New GB\2-www_mydigiguide_com and GB\1-xmltv_radiotimes_com xml files are built using the existing files and either adding or removing any changes found on both web sites or replacing all channels with a name format reflecting the web sites channel names.

The replaced grabber files will be built referencing the existing xml files and copies over data prior and after the channel list. Therefore, if any of the header data or footer (listings etc.) requires amending, these can be easily incorporated to the current XML file before running this program.

A new channels xml file is created adding all newly named channels to top of channel list, the idea is to make the ‘auto-mapping’ find the channels with a better hit rate but will still require an amount of due diligence after because neither web site nor channel providers appear to work to a naming standard. The original channels.xml file (renamed as channels_xml.org) is referenced to build the new channels file. It is worth noting, this does NOT follow the rules here: MediaPortal_Setup_Customising_WebEPG - MediaPortal Manual Documentation

To help with selecting any mismatched or not found channel data whilst auto-mapping, the program moves all but the GB directory and your native dir if different from UK dialling code 44, to a sub dir ‘original’ off WebEPG dir.

If there are any changes to either grabber files, a text file is saved on the desktop showing which channels have been added or removed. You can then decide if you want to map or remove these channels in the WebEPG tool. (Note: the removed channels are also removed from the WebEPG xml to stop the WebEPGImpoter from grabbing these channels – if you don’t remove these channels using the WebEPG tool prior to using save button, they will be added back to the WebEPG xml file).The text file will be removed from the desktop on first occurrence of a channel found to be mapped.

There are a few switches if required and running the following (you’ll need to add path) should display more details in a notepad window: "RadioTimes_MyDigiGuide.exe" /h

If the MediaPortal’s ‘Power Scheduler’ plugin is enabled, the program can be run as part of the EPG ‘Run command before....’ line or add a MS scheduled task to run daily.

If there is any interest in the text script file to generate the exe shout and I can post here, it is a ‘autohotkey’ ahk script.

Whilst looking into the grabber files there are potentially two very slight changes which may (or may not) improve grabbing:

GB\2-www_mydigiguide_com – in the ‘SectionTemplate tags’, add a P, so it should =“TP”

GB\1-xmltv_radiotimes_com – at the end of the Data rowDelimitor there is a character between the last ~ and </Data>, I replace with a space although it does not appear to make a difference.

Finally, it may be possible to automatically add as well as remove to the WebEPG xml file, this automate completely all the channel changes rather than manually mapping with the WebEPG tool but requires more time than I have currently...
 

Attachments

  • RadioTimes_MyDigiGuide.zip
    30.7 KB

tdw197

Portal Member
April 13, 2009
23
2
Home Country
United Kingdom United Kingdom
Hi,

Exceuse my ignorance on this, but am trying to use webEPG with your script, after using xmltv with mc2xml, so am a bit out of the loop.

I can see that your script is modifying the correct files, but in the mapping channels options only the new channels have been created - all the channels which have been renamed by the owners (UKTV etc) are still shown using their old name. Is there anyway to get your script to update the names as well as creating the new channel?

Thanks, tom
 

yourmumquake

Portal Member
June 6, 2007
22
4
Home Country
United Kingdom United Kingdom
Check the help text by running: "RadioTimes_MyDigiGuide.exe" /h
You should be able to run with the following switch: using /r or /replace will replace xml files channel names with new channel names; e.g. "RadioTimes_DigiGuide.exe" /r to replace previous channel names with new ones

Kind regards, Jim.
 

tdw197

Portal Member
April 13, 2009
23
2
Home Country
United Kingdom United Kingdom
Check the help text by running: "RadioTimes_MyDigiGuide.exe" /h
You should be able to run with the following switch: using /r or /replace will replace xml files channel names with new channel names; e.g. "RadioTimes_DigiGuide.exe" /r to replace previous channel names with new ones

Kind regards, Jim.

Thanks for your help, but this dowsn't seem to have done the trick. I'm running it in vista from an admin command prompt, so it should have full rights, any ideas?

BTW you help file doesn't mention the /r switch!

TIA
 

yourmumquake

Portal Member
June 6, 2007
22
4
Home Country
United Kingdom United Kingdom
Ooops - just checked and it is /c (not! /r) as showing in help, sorry for the error:
/c - Change RadioTimes and MyDigiGuide XML files channel names to match the web sites names.
e.g. the original MP name for BBC1 (or BBC ONE on DVB-T) is "bbc1@bbc.co.uk", the name as shown on the RadioTimes or MyDigiGuide web sites; "BBC1".
Using this switch will require clearing any previous mapped channels with MP style names and then re-mapping. It should only need to be done the once on first
time of using the newly created xml file(s).
Re-running with this switch will have the affect of sorting any newly added channels to the XML files.
 

Users who are viewing this thread


Write your reply...
Top Bottom