[mythtv-commits] mythtv commit: r23479 by mdean
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Fri Feb 5 03:11:23 UTC 2010
Author: mdean
Date: 2010-02-05 03:11:23 +0000 (Fri, 05 Feb 2010)
New Revision: 23479
Changeset: http://svn.mythtv.org/trac/changeset/23479
Modified:
trunk/mythtv/contrib/user_jobs/mythlink.pl
Log:
Modify mythlink.pl to allow creating a symlink for a specific recording file using the --filename or --chanid and --starttime arguments. This allows the script to be used as a proper user job or--even better--to be used in conjunction with the "Recording started" event in the new event-driven notification system so links are created as soon as the recordings start.
Note that when specifying --filename or --chanid and --starttime, deletion of old symlinks (other than the one for the specific file) is suppressed. Therefore, anyone using this script in a user job or with the event system should still run the script occasionally without the --filename or --chanid and --starttime arguments to allow removal of links that referred to recordings since deleted.
The --filename argument can use either the absolute path of the file or the recording file's basename. The --starttime argument can use either the MythTV time format (yyyy-MM-ddThh:mm:ss), the ISO time format (yyyy-MM-dd hh:mm:ss), or the "job queue" time format (yyyyMMddhhmmss). The --chanid uses the channel ID format.
Thanks to Johan Godfried for the initial patch. Fixes #5379 with a slightly modified version of the patch on the ticket.
More information about the mythtv-commits
mailing list