[mythtv-users] Using mythlink.pl in a system event.
Jeremy Jones
jeremy.dwain.jones at gmail.com
Wed Feb 8 20:52:00 UTC 2012
On Wed, Feb 8, 2012 at 10:56 AM, Zarthan South <zarthan at gmail.com> wrote:
>
> I have used mythlink as a cronjob and like you ran it once a night. I started adding it to the tail end of my job when I started plugging my converted recordings back into the database. It seemed like the thing to do ;) Since I play the recordings from the link name I was concerned that it might case playback issues if a generic mythlink run happened during playback. My conversion from mpeg2 to mp4 only takes 5 or 6 minutes for a half hour program so a recording is ready very quickly and we often want to watch them. Turns out a mythlink run doesn't have any effect at least so far and I just created a cronjob to run every 10 minutes.
>
> It doesn't seem to have any effect.
>
>
I probably should have been more clear. I run mythlink as a userjob,
specifying the recording (specify the --chanid and --starttime
arguments), which only adds the link for that one recording. Then I
run it again as a nightly cron job that deletes an re-creates all
links, so as to get rid of orphaned symlinks due to a deleted
recording. Looking back, I see you are the OP on this thread; so glad
you got it working. If your recording library grows and it does start
to be an issue, you may want to try my setup. Also, there is a way to
run as a system event, but I would suspect that would be to create the
new symlink upon the start of a recording, instead of upon the
deletion as you were wanting to do in your OP.
The only drawback I can see to running as a userjob to add the link
and then again as a cron job to clean up the orphaned links, is that
occasionally someone might attempt to play a file that was actually
deleted earlier that day.
I haven't heard a complaint at my house yet though :)
Jeremy
More information about the mythtv-users
mailing list