[mythtv-users] Samba share of mythfs.py filesystem not working

John Reid johnbaronreid at netscape.net
Sat Jan 29 14:14:21 UTC 2011



On 29/01/11 03:58, Michael T. Dean wrote:
>  On 01/28/2011 10:24 PM, Raymond Wagner wrote:
>> On 1/28/2011 20:54, E. Westbrook wrote:
>>> On Fri, Jan 28, 2011 at 08:32, Raymond Wagner  wrote:
>>>>     Yes there is, but the event only provides the channel ID and start
>>>>     time.  There is not enough information to reconstruct the filename
>>>>     to know which link to delete.
>>>
>>> Wouldn't it be sufficient to determine the filename to pass the 
>>> format string to mythlink.pl as a command-line argument for the 
>>> event definition?  Or derive it from the mytlink.pl config?
>> To be honest, I don't know how that would work.  When the system 
>> event is sent to the connected machines, only the chanid and 
>> starttime is defined.  Normally, the machine can then look up the 
>> recording to pass on to the registered command, but if the recording 
>> has been deleted, there will be nothing to look up.  The easiest 
>> option would probably be to just have a 'cleanup' mode, where it 
>> scans the directory, and removes any dead symlinks.
>
> Which is basically what running without --chanid/--starttime is...  It 
> cleans up everything, then re-creates.
It just seems cleaner and easier to remove only the dead symlinks. This 
is superior to removing all links and recreating as someone might be 
using the links at the time. If there was an option that makes mythlink 
do this whilst creating the one new link this could work quite well. BTW 
cronjobs don't work too well for me as my machine is off most of the time.

John.


More information about the mythtv-users mailing list