Matt wrote: <snip> > > Maybe my bleb script would of use to someone else too ? > > -------------------------------------------------------------- > -------------- > #!/bin/sh > echo "-Remove old data.xml file if it exists..." > rm -f /tmp/data.xml >nul > rm -f /tmp/raw.xml >nul > rm -f /tmp/log.tmp >nul > echo "-Download updated listings from www.bleb.org..." > wget -q -O /tmp/tvdata.zip > > "http://www.bleb.org/tv/data/listings?days=0..6&format=xmltv&c hannels=bbc1,bbc2,itv1,ch4,five,bravo,discovery,> e4,men_and_motors,paramount,paramount2,scifi,sky_one,sky_one_m > ix,uk_gold,sky_movies1,sky_movies2,sky_movies3,sky_movies4,sky > _movies5,sky_movies6,sky_movies7,sky_movies8,sky_movies9,uktv_ > documentary&file=zip" > >nul > echo "-Uncompress.." > cd /tmp > unzip /tmp/tvdata.zip >nul > echo "-Update MythTV.." > mythfilldatabase --file 1 -1 /tmp/data.xml >nul > -------------------------------------------------------------- > -------------- > > Maybe it's not pretty but it works OK! You need to have the > channels setup in the mythconverg database first. I'm not > sure of an automated way to do this since as far as I know > the mythfilldatabase uk sites (including RT) don't work anymore.
Blimey, why don't you just do /usr/bin/tv_grab_uk_rt --config-file /home/mythtv/.mythtv/<Channel Listing>.xmltv | /usr/bin/mythfilldatabase --update --file 1 -1 - Where <Channel Listing>.xmltv is a listing of all the channels required (eg Terrestrial.xmltv), gives you 14days worth of listings. > I also create mpeg links to my nuv files on a samba share so > that I can play the files over my LAN. > > The script gets the program name out of the database and uses > that to create the link. > > This is the script to do that - > > -------------------------------------------------------------- > -------------- > #!/bin/bash > rm -f /home/video/mpeg-links/* > x=1 > y=1 > for FILE in `ls /home/video/*.nuv` > do > > part1=`echo $FILE | cut -d/ -f4 - | cut -d_ -f1 -` > part2=`echo $FILE | cut -d/ -f4 - | cut -d_ -f2 -` > part3=`echo $FILE | cut -d/ -f4 - | cut -d_ -f3 - | cut -d. -f1 -` > > filename[$x]=$FILE > outfile[$x]=$part3 > > string="select title, subtitle, starttime from recorded where > chanid=$part1 and starttime=$part2 and endtime=$part3" > title[$x]=`mysql mythconverg -e "$string" --skip-column-names > -B -si` files[$x]=$FILE program_title=`echo ${title[$x]} | > sed 's/ /_/g' | sed 's/:/_/g'` ln -s $FILE > /home/video/mpeg-links/$program_title.mpeg > let x=x+1 > done > -------------------------------------------------------------- > -------------- Handy, I was just thinking about doing that and up it pops :-) TVM Druid
_______________________________________________ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users