Script to grab xmltv from Matt Huisman's site.
This is to get 8 day EPG for all channels for which provide this only over MHEG-5.
Applies minor adjustments to channel names in the epg.xml to match the channel names MythTV populates after scanning for channels.
Also removes channels unavailable on the terrestrial service (can be region dependant).
This is configured for Waikato, but keeping other regions in mind.
You should be able to easily adjust to suit your needs.
Daniel Sheffield 62969f90ca Remove unnecessary patches and update readme | 8 месяцев назад | |
---|---|---|
.gitignore | 2 лет назад | |
0007-rename.patch | 1 год назад | |
Readme.md | 8 месяцев назад | |
epg-grab-mjh.sh | 8 месяцев назад |
Designed for use with New Zealand FreeView.
Assumes you have mythtv set up as per the setup guide
After setting your Channel Frequency Table to New Zealand, you may need to edit the transports to match the data for your region.
NOTE: I'm not actually sure if this is necessary, but the channel scan I did with mythtv defaults resulted in some channels missing. After deleting all channels, manually adding the transports in Waikato, and running another scan, then all channels were found. However, I noticed that the resulting 5 transports were different to what I configured manually (mythtv will find and delete duplicates). It could just be that the first scan missed some channels for some reason.
See tv headend git repo for the frequencies for your region.
First, check the patches rename.patch
and remove.patch
are appropriate for your use case.
Then run:
./epg-grab-mjh.sh
Add to your daily crontab.
Thanks Matt Huisman.
See here https://www.matthuisman.nz/2017/07/new-updated-nz-iptv-files.html
To generate the patches, just download the epg.xml from Matt Huisman's site, and
Copy the original xml to epg-modified.xml
Make sure the channel names in epg-modified.xml match the output from mythtv db:
sudo mysql -u root -p mythconverg -e "SELECT channum,chanid,icon,name,xmltvid,useonairguide,sourceid FROM channel WHERE visible AND channum <> '' AND deleted IS NULL ORDER BY channum+0;"
Generate the diff between the original and modified xml, and save as rename.patch:
diff -u epg.xml epg-modified.xml > rename.patch
Apply the rename.patch to the original xml
The modifications are split up in the case that some users neeed renames but not removals.