MythTV-TV GRAB AU
From OCAU Wiki
tv_grab_au is a perl script that gathers data from various sources on the internet and populates mythtv with this information.
Currently the best script has been created by LTD73 and is stored at http://www.whuffy.com/tv_grab_au/tv_grab_au-1.41.
How to install
This command will download all xmltv and all of its requirements. Note that this also downloads some extra librarys that are not yet needed but will be in future releases of tv_grab_au.
Download LTD's tv_grab_au script
mkdir /usr/bin/tv_grab_au/ cd /usr/bin/tv_grab_au/ sudo wget http://www.whuffy.com/shepherd/shepherd
Rename tv_grab_au-1.41 to tv_grab_au
Give execute permissions
sudo chmod +x /usr/bin/tv_grab_au/tv_grab_au
Make directories and give permissions to write for the tv_grab_au cache.dat
sudo mkdir -p /var/local/tv_grab_au sudo chmod 777 /var/local/tv_grab_au -Rf
How to configure
run the following command to edit your tv_grab_au file
sudo gedit /usr/bin/tv_grab_au/tv_grab_au
Now that gedit is running you need to the following
* Find '$region=' and set the trailing number to your location which is listed above. * If you are in WA or SA then you will need to edit '$y7w' which is just below, comment out VIC and remove the comment from your state
Save and exit gedit.
Stop mythbackend if started
sudo /etc/init.d/mythtv-backend stop
Go to the "Channel Editor" and scan all channels
Now one by one you need to enter each channel, you can do this by clicking on the channel and then pressing 'e'.
If you do not want the channel to be available then you can remove the channel easily by removing the channel number and uncheck the 'visible' check box.
The next step before you press 'Finish' is to set the XMLTV ID for those channels that you want to keep. I have listed the default XMLTV ID's below you need to enter these in the XMLTV ID text box.
Chan name = Channel ID ABC = abcvic.free.au Seven = channelsevenmelbourne.free.au Nine = channelninemelbourne.free.au TEN = networktenmelbourne.free.au SBS = sbsmelbourne.free.au ABC2 = abc2.abc.gov.au
It may be worth checking you tv_grab_au script to verify the XMLTV ID'S
Thats it, it should be already to run now.
How to run
Now you only need to run mythfilldatabase and the script will go and do its thing
This can be automated by running the following script
sudo crontab -e -u mythtv
Common Problems and Fixes
"Can't locate XML/DOM.pm in @INC"
You are missing some XML files, please run the following script
Other Linux OS
sudo cpan Algorithm::Diff Compress::Zlib Cwd Data::Dumper Date::Manip Getopt::Long List::Compare LWP::UserAgent DateTime::Format::Strptime File::Basename File::Path HTML::Entities HTML::TokeParser HTML::TreeBuilder IO::File Storable Time::HiRes XML::DOM
"How do I use OzTivo Grabber"
Before you can use the OzTivo grabber, you must create an OzTivo account here:
and select some channels here:
When you're done, enter your username and password here, to enable this grabber to retrieve your guide data automatically:
WARNING: could not write cache file /var/local/tv_grab_au/cache.dat: No such file or directory Please fix this in order to reduce the number of queries for data!
Permissions have not been not been set correctly for either that folder or its contents. Run the following in the console
mkdir -p /var/local/tv_grab_au chmod 777 /var/local/tv_grab_au chmod 777 /var/local/tv_grab_au/*
Note that you may get the following error but this is ok as there arnt any files in the folder yet.
chmod: cannot access `/var/local/tv_grab_au/*': No such file or directory