On za, 2005-02-05 at 07:03 -0800, Darren Hart wrote:
> I spent a couple hours writing a script to create human readable 
> symlinks to the mythtv named recordings.  I find this useful when 
> creating DVDs of shows, or just looking at the files from something 
> other than MythTV.  Right now it isn't at all polished but it does work. 
>   The paths are fixed (but easy to change at the top of the file) to 
> /mnt/mythtv/recordings and /mnt/mythtv/links.  I am still running 0.15, 
> so I', not sure if the relevant parts of the db schema have changed or not.
> 
> It creates links of the form (in decreasing order of preference):
> 
> title - preference_seq.mpeg
> title - description(0-15)_seq.mpeg
> title - starttime_seq.mpeg
> original file name
> 
> where seq is a sequence number in case the same name comes up twice.  I 
> use a PVR-250 so it calls them all mpegs.
> 
> I thought I'd post it in case anyone else might find it useful.  Have I 
> mentioned that I hate perl?  If not, let me get that out of the way: I 
> hate perl.  :-)  If there are some perl gurus on the list that would 
> like to point out all the things I did wrong or in an amateur fashion, 
> please do so - I wouldn't mind being a better perl programmer - even if 
> I do hate it.  If you do use it and improve upon it, please post it back 
> to me and or the list so we can benefit from your improvements as well.
> 

I'm afraid you could have saved yourself some time. A script that does
this is already in the contrib folder :
http://cvs.mythtv.org/cgi-bin/viewcvs.cgi/mythtv/contrib/mythlink.sh?rev=1.2&view=log

Steven

_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to