[mythtv-users] Channel grabbing question: can I grab from multiple sources?
Jan Ceuleers
jan.ceuleers at computer.org
Sun Oct 26 12:19:00 UTC 2008
Mike and All,
Michael T. Dean wrote:
> Best would be to use tv_cat to concatenate the multiple files into one
> that mythfilldatabase can process.
>
> http://www.gossamer-threads.com/lists/mythtv/users/113156#113156
> http://www.gossamer-threads.com/lists/mythtv/mythtvnz/294808#294808
>
> As a matter of fact, if you truly want to use multiple listings
> providers for a single video source, you probably will have to do so.
Many thanks for your help. I'm well on my way now with the script below.
Unfortunately the Belgian, Dutch and German grabbers appear not to be
working right now (probably due to changes having been made on the
websites that they are designed to grab from), but I do have reasonable
coverage of other channels.
(Note that I'm on Ubuntu 7.10 which includes a version of xmltv where
some of the grabbers don't work. I'm using grabbers from the current
version in some cases).
Cheers, Jan
#!/bin/bash
pushd ~mythtv/.xmltv
rm tv_grab*.out
/usr/bin/tv_grab_uk_rt --config-file tv_grab_uk_rt.conf --output
tv_grab_uk_rt.out &
/usr/bin/tv_grab_it --config-file tv_grab_it.conf --output tv_grab_it.out &
~mythtv/xmltv-0.5.53/tv_grab_fr --config-file tv_grab_fr.conf --output
tv_grab_fr.out &
##########/usr/bin/perl -I/home/mythtv/xmltv-0.5.53 -w
~mythtv/xmltv-0.5.53/tv_grab_be --config-file tv_grab_be.conf --output
tv_grab_be.out
wait
/usr/bin/tv_cat --output tv_cat.out tv_grab_*.out
/usr/bin/tv_grab_pt --config-file tv_grab_pt.conf --output tv_grab_pt.out
/usr/bin/mythfilldatabase --file 1 tv_cat.out
/usr/bin/mythfilldatabase --file 1 tv_grab_pt.out
/usr/bin/mythfilldatabase --file 2 tv_cat.out
. /etc/mythtv/mysql.txt
/usr/bin/mysql -h $DBHostName -u $DBUserName --password=$DBPassword
$DBName < ../removePhantomChannelsAndPrograms.sql
/usr/bin/mythbackend --resched
popd
More information about the mythtv-users
mailing list