-
Notifications
You must be signed in to change notification settings - Fork 12
radiotimes
This script is for UK users. It creates a pretty complete xml file, but is missing some things that are not provided by the radiotimes webiste (mainly repeat episodes for certain channels).
Basic usage is
radiotimes.pl --output plex.xml --cachefile radiotimes.cache --pretty --bbcregion='BBC South' --itvregion='ITV South' --extrachannels=<comma separated list of other channels to include>
If you don't want to use the bbcregion or itvregion, you can just specify your channels by using the following format (showing some random channels as an example):
radiotimes.pl --output plex.xml --cachefile radiotimes.cache --days=7 --onlychannels=11315,1994,37,5090,2615,11819,13223,105,185,2098,160,2050,1961
To get a complete list of options, use radiotims.pl --help
--bbcregion=<bbcregion> This defines which BBC guide to parse. It is mandatory if <onlychannels> is not defined. Refer below for a list of regions. --itvregion=<itvregion> This defines which ITV guide to parse. It is mandatory if <onlychannels> is not defined. Refer below for a list of regions. --onlychannels=<channel list> This defines the channels to collect and will ignore any other defined channel options. --extrachannels=<channel list> This defines the extra channels to collect. Use option '--extrachannels help' for complete list. --days=<days to collect> This defaults to 7 days and can be no more than 7. --pretty Output the XML with tabs and newlines to make human readable. --output <filename> Write to the location and file specified instead of standard output. --verbose Verbose Mode (prints processing steps to STDERR). --verify Prints the actual LCN numbers and channel names to verify what will be collected. --help Will print this usage and exit! !!! NOTE: Channel numbers are not the same channel numbers seen on the TV, but a number used by radiotimes.com to identify the channel. Do not get them mixed up!!!!. !!! NOTE: To see a list of radiotimes channel numbers and names use option --extrachannels help!!!!.
For the channel numbers vs radiotimes channel number cross reference, refer to https://markcs.github.io/xml/channels.html
Various Perl modules are required and will have to be installed