LinuxMCE Forums
May 22, 2013, 01:50:52 am 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 recordings and SaveMythRecording.sh  (Read 553 times)
donpaul
Guru
****
Posts: 300


View Profile
« on: December 12, 2009, 05:18:37 am »

I have been tortured for a while regarding the Myth livetv and recorded tv paths, and how the recordings are treated in LMCE. As it currently stands, livetv that is recorded, is never put in LMCE due to the folderlock. Also, if recordings are deleted on an orbiter it screws up mythtv. Anyhow, I think I have a good solution. I have a livetv and recordings folder, and folderlock both. I then use savemythrecordin.sh to symlink the recording. Here is my SaveMythRecording.sh

Code:
#!/bin/bash

dir="/home/public/data/pvr/MediaDiskonCore/LMCE"

ln -sf $3/$4 $dir/$4
chown mythtv:public $dir/$4
chmod 755 $dir/$4

echo "messagesend" >> /var/log/savemythrecording.log
echo "$(date) $0-$1-$2-$dir-$4" >> /var/log/pluto/donerecording.log
/usr/pluto/bin/MessageSend dcerouter 0 -1001 2 69 29 "$1" 57 "$2" 35 "$dir/$4"

Here is the section of mythtv_setup.pl

Code:
#public storage groups
                CheckMythTVStorageGroup("/home/public/data/pvr/$Device_Description/Recordings","Default","$hostName");      #Put the special "Default" storage group in.
                CheckMythTVStorageGroup("/home/public/data/pvr/$Device_Description/livetv","LiveTV","$hostName");       #Put the special "LiveTV" storage group into the moons root pvr* directory
                CheckMythTVStorageGroup("/home/public/data/pvr/$Device_Description/Recordings","public: $Device_Description","$hostName");

I see all scheduled recordings and livetv recordings (hit the record button while watching livetv, or a scheduled recording fired while watching it live) in LMCE orbiter.

Anyone else think it is a good idea for release?
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!