Update of /cvsroot/freevo/freevo/WIP/RobShortt
In directory sc8-pr-cvs1:/tmp/cvs-serv27478

Added Files:
        tv_grab_multiple 
Log Message:
A script to use as your XMLTV_GRABBER in local_conf.py for combining listings 
from multiple providers.  You must have xmltv config files for each provider:

tv_grab_na --config-file=/etc/freevo/tv_grab_na-A.conf --configure
tv_grab_na --config-file=/etc/freevo/tv_grab_na-B.conf --configure

Where the providers you are interested in are "A" and "B".  The script will
run a grabber for each configured provider (see this script for details -
modify the PROVIDERS entry) and combine the results with tv_cat.  This can
be run using the tv_grab Freevo helper.



--- NEW FILE: tv_grab_multiple ---
#!/bin/bash

export PATH=/usr/bin:/usr/local/bin:/bin:/usr/sbin

PROVIDERS="expressvu eastlink"
ARGS=$*


for i in $PROVIDERS
do
  tv_grab_na --config-file /etc/freevo/tv_grab_na-$i.conf $ARGS
  cp /tmp/TV.xml.tmp /tmp/TV.xml-$i
done

CATFILES=""
for i in $PROVIDERS
do
  CATFILES="$CATFILES /tmp/TV.xml-$i"
done

tv_cat $CATFILES > /tmp/TV.xml.tmp

echo "$0: finished combining $CATFILES"




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to