Freevo

- User Documentation

# XMLTVUK

### UK listings

The tv_grab_uk_rt script from the XMLTV package for UK listings is no longer working. I found the following from the mailing lists worked:

    #!/bin/bash
    # Get yesterday's, and the following weeks' listings in XMLTV format
    #
    BASE_URL='http://bleb.org/tv/data/listings'
    DAYS=-1,0,1,2,3,4,5,6
    FORMAT=XMLTV
    FILE=BZIP2
    TIME_OFFSET="+0060"
    CHANNELS=bbc1,bbc2,itv1,ch4,five,sky_one,uk_history,uk_horizons,e4,itv2,cartoon_network,uk_gold,bbc_radio4,bbc3,bbc4,bbc7
    wget -U 'Freevo Listing' -O '/tmp/listings.xml.bz2' "$BASE_URL?days=$DAYS&format=$FORMAT&file=$FILE&channels=$CHANNELS"
    rm -f /tmp/listings.xml
    bunzip2 /tmp/listings.xml.bz2
    cat /tmp/listings.xml | perl -pi -e 's/(\d{14,})/$1 ${TIME_OFFSET}/g' >/tmp/TV.xml
    cd /usr/lib/python2.3/site-packages/freevo/
    su -c "freevo execute tv/epg_xmltv.py" freevo

last edited 2005-01-25 12:10:05 by JohnMolohan
current version: http://freevo.sourceforge.net/cgi-bin/doc/XMLTVUK