[myth-ie] fixed entertainment.ie grabber

Brendan Kehoe brendan at zen.org
Sun Jan 20 05:41:04 CST 2008


I put up at

http://www.zen.org/~brendan/entie-grabber-v0.5.tar.gz

a new version of the grabber for entertainment.ie listings.

This fixes a bug when you're fetching more than one channel.

The script will use the list of channels in a configuration file as the 
basis for what channels to actually grab. If you omit the --config-file 
argument, it'll get a full listing for each day and using info for all 
the channels.  Invoke it with something like

    perl tv_grab_ie_entie --config-file tv_grab_ie_entie.conf | 
mythfilldatabase --file 1 -1 -

to make mythfilldatabase take it on stdin. (Handy for a cron job.)

The two sample config files are

    tv_grab_ie_entie.conf            grabs Channel 6 and FilmFour
    tv_grab_ie_entie-all.conf      a list of all of the channels they 
currently make available

This grabber looks for 'entie-channel_ids' in the current directory; it 
needs a further tweak to look in the directory of the script itself or 
some other place like '/usr/share/xmltv/tv_grab_ie_entie/channel_ids' ?

I'm now using a weekly cron job that executes the script

    #!/bin/sh

    ## Grab channel listings not supplied by RealTimes.

    # Success by default.
    fail=0

    tv_grab_ie_entie --config-file ~/.mythtv/tv_grab_ie_entie.conf |
    mythfilldatabase --file 2 -1 -
    if [ $? -ne 0 ]; then
      fail=1
      echo "$0: grabbing from entertainment.ie failed!"
    fi

    tv_grab_ie_mgm --config-file tv_grab_ie_mgm.conf | mythfilldatabase
    --file 2 -1 -
    if [ $? -ne 0 ]; then
      fail=1
      echo "$0: grabbing from MGM Channel failed!"
    fi

    exit $fail

You'll need to change '2 -1' to '1 -1' above if you want to try it, 
since most of the time there's a single video source to pick from.

B



More information about the MythTV-Ireland mailing list