[Main Page] 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

(Difference between revisions)

(Introduction)
(Introduction)
Line 5: Line 5:
 
tv_grab_au is a perl script that gathers data from various sources on the internet and populates mythtv with this information.
 
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 [[here|http://www.whuffy.com/tv_grab_au/tv_grab_au-1.41]].
+
Currently the best script has been created by LTD73 and is stored [[http://www.whuffy.com/tv_grab_au/tv_grab_au-1.41|here]].
  
 
== How to install ==
 
== How to install ==

Revision as of 03:45, 19 February 2007

Contents

Introduction

This wiki page is intended to be a one-stop-shop for Aussie mythtv users who are tyring to setup tv_grab_au.

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 [[1]].

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/tv_grab_au/tv_grab_au-1.41

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 five 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
    sudo chmod 777 /var/local/tv_grab_au/*

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

   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

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


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