[mythtv-commits] Ticket #3799: Rename preview images in mythrename.pl

MythTV mythtv at cvs.mythtv.org
Tue Aug 7 19:31:32 UTC 2007


#3799: Rename preview images in mythrename.pl
----------------------------------------------+-----------------------------
 Reporter:  sphery <mtdean at thirdcontact.com>  |       Owner:  ijr    
     Type:  defect                            |      Status:  new    
 Priority:  minor                             |   Milestone:  unknown
Component:  contrib                           |     Version:  head   
 Severity:  medium                            |     Mlocked:  0      
----------------------------------------------+-----------------------------
 The attached patch is meant to rename the preview images when recording
 files are renamed by mythrename.pl.  I haven't tested it in place (as I
 don't rename my recordings--I create links), but have done testing with a
 little "test harness" (just the rename code and some variable
 initializations in a separate script).

 Notes for committer: As a non-Perl coder, I don't know if there's some way
 to use the value $show->{'local_path'} in the glob/wildcard (direct
 placement doesn't work), but copying its value to $old_name definitely
 works.  There may also be a prettier way to grab the dimensions from
 $current_preview (i.e. a one-liner or something), but the approach in the
 patch works and handles "empty" values for dimensions (i.e. for the
 frontend preview image).

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3799>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list