LinuxMCE Forums
General => Users => Topic started by: Viking on November 19, 2009, 02:46:22 pm
-
Hi,
using latest 0810 beta I found out this.
The MythTV job #1 "SaveMythRecording.sh" is missing some quotes around "%DIR%".
For more see :
http://svn.linuxmce.org/trac.cgi/ticket/436#comment:2
You can fix it in the mythweb http://192.168.80.1/mythweb/settings/mythtv
then select "- All Hosts -" and look for "UserJob1"
should the read like this :
/usr/pluto/bin/SaveMythRecording.sh %CHANID% %STARTTIME% "%DIR%" "%FILE%"
The only difference is the quotes.
Unfortunatly DCE router now crashes on me again when recordings are added to the video list after finishing in MythTV :(
See here :
http://svn.linuxmce.org/trac.cgi/ticket/435
Viking
-
Sorry,
you can't fix it in MythWeb as it is overwritten by some process.
But you can change the script /usr/pluto/bin/SaveMythRecording.sh to look like this :
#!/bin/bash
echo "$(date) $0-$1-$2-$3-$4-$5-$6-$7-$8-$9" >> /var/log/pluto/donerecording.log
CHAN=$1
shift
START=$1
shift
DIR=$1
let CNT=0
while [ $# -gt 2 ]; do
shift
DIR="${DIR} $1"
done
shift
FILE=$1
# Viking - so that the picture is found when using another disk for storageing :
# [ ! -e /home/public/data/pvr/${FILE}.png ] && ln -s "${DIR}/${FILE}.png" /home/public/data/pvr/
# /usr/pluto/bin/MessageSend dcerouter 0 -1001 2 69 29 "$1" 57 "$2" 35 "$3/$4"
/usr/pluto/bin/MessageSend dcerouter 0 -1001 2 69 29 "${CHAN}" 57 "${START}" 35 "${DIR}/${FILE}"
If you remove the # in the line after the "# Viking" comment, that will probably also fix that the recording picture is not added.
That happens if you are not storing your recordings on the primary disk. Have filed that to trac.
Viking