I modified the mythfillepg script. The script grab the data to a file and read the file in. Works good with tv_grab_ch.
"mythfillepg" grab the missing days, "mythfillepg manual" grab TOTAL_DAYS bye Thomas ---- script: mythfillepg ---- #!/bin/bash ################################################################ # Customized mythfilldatabase script that efficiently grabs # # only the needed days to minimize load and bandwidth. # # # # Created by: Jeroen Brosens # # e-mail: [EMAIL PROTECTED] # # web: http://www.fotoniq.nl/projects/mythtv/ # # Modified: Thomas Kuster # # e-mail: [EMAIL PROTECTED] # # web: http://www.fam-kuster.ch # # # # Modified: # # Manual grab to file then read in. # # Now you can use a grabber that is not supported by Mythtv # # # # Below are some variables that can be edited to you liking. # # Make sure you set your GRABOPTIONS correctly! # # NOTE: Some grabbers do not support the same arguments that # # I used, please check this for your one. # ################################################################ # Mythbackend settings; usually these will do fine. BACKEND_HOST=localhost STATUSPORT=6544 # Number of days in the guide that should be filled TOTAL_DAYS=7 # XMLTV Data File XMLTV_DATA_FILE=/home/mythtv/xmltv_data/data.xml # XMLTV Config File XMLTV_CONFIG_FILE=/home/mythtv/.xmltv/tv_grab_ch.conf # XMLTV Grabber GRABBER=tv_grab_ch # date DATE=`date` ############################### # Do not edit below this line # ############################### echo -e "Fill-EPG-Script START: $DATE\nUser (whoami): `whoami`" OFFSET=$(wget http://$BACKEND_HOST:$STATUSPORT -qO /dev/stdout | \ grep "guide data until" | grep -o "([0-9]*" | tr -d "(") echo "Offset (read out): $OFFSET" if [ -n "$1" ] then OFFSET=0 fi if (( $OFFSET )) then TO_GRAB=$(($TOTAL_DAYS - $OFFSET)) else OFFSET=0 TO_GRAB=$TOTAL_DAYS echo "No Offset or manual run" fi echo "Will grab $TO_GRAB days." if (( $TO_GRAB > 0 )) then echo "$GRABBER --config-file $XMLTV_CONFIG_FILE --days $TO_GRAB\ --offset $OFFSET --output $XMLTV_DATA_FILE" $GRABBER --config-file $XMLTV_CONFIG_FILE --days $TO_GRAB\ --offset $OFFSET --output $XMLTV_DATA_FILE echo "Finished grabbing" fi mythfilldatabase --update --file 1 -1 $XMLTV_DATA_FILE echo "Finished." _______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
