LinuxMCE Forums
May 18, 2013, 11:43:37 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: MythTV job #1 SaveMythRecording.sh is missing some quotes ...  (Read 676 times)
Viking
Addicted
*
Posts: 521


View Profile
« 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 :
Code:
/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 Sad
See here :
http://svn.linuxmce.org/trac.cgi/ticket/435

Viking
Logged

Viking
Addicted
*
Posts: 521


View Profile
« Reply #1 on: November 20, 2009, 08:40:57 am »

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 :
Code:
#!/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
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!