Main Page | Recent changes | View source | Page history

Printable version | Disclaimers | Privacy policy | Latest revision

Not logged in
Log in | Help
 

MythTV-TV GRAB AU

Revision as of 17:41, 2 March 2010 by Anlashok (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contents

Cautionary Note

This wiki page contains information about the deprecated tv_grab_au script. These days it's recommended you use Shepherd, which you can read more about on our MythTV Electronic Program Guide page.

Introduction

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

Ubuntu 6.10

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.

    sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl libhtml-parser-perl libxml-dom-perl

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

start mythtv-setup

    sudo mythtv-setup

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

   sudo mythfilldatabase

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

Ubuntu\Debian

   sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl \
   libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl \
   libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl \
   libhtml-parser-perl libxml-dom-perl libgd-gd2-perl libdigest-sha1-perl \
   libarchive-zip-perl libio-string-perl

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:

http://minnie.tuhs.org/twiki/bin/view/TWiki/TWikiRegistration

and select some channels here:

http://minnie.tuhs.org/tivo-bin/tvguide.pl

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


More Links


[Main Page]
OCAU News
OCAU Forums
PC Database

Main Page
Recent changes
Random page
All pages
Help

View source
Discuss this page
Page history
What links here
Related changes

Special pages