[mythtv-users] mythrename.pl renames my .avi to .nuv

Christophe Zwecker doc at zwecker.de
Mon Jan 15 19:25:51 UTC 2007


Brad DerManouelian wrote:

> 
> I'm not sure I understand.  You're changing the basename to .avi and  
> the file on the disk to .avi and mythrename is changing it back  
> to .nuv? I'm not sure how this is happening since the only place in  
> the code that mentions nuv is line 385.

mythrename.pl looks like this here:

---snip----

     # Figure out the suffix
         my $out    = `file -b $safe_file 2>/dev/null`;
#        my $suffix = ($out =~ /mpe?g/i) ? '.mpg' : '.nuv';
          my $suffix = ($out =~ /mpe?g$/i) ? '.mpg' : '.nuv';
          $suffix = ".avi" if ( $out =~ /\.avi$/i );
     # Link destination

---snip---
-- 
Christophe Zwecker
:Sysctl
Koppel 96
20099 Hamburg
phon: +49 40 41263790
  fax: +49 40 41263799
mail: czwecker at sysctl.de


More information about the mythtv-users mailing list