- June 6, 2007
- 22
- 4
- Home Country
-
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...
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...