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

Brad DerManouelian myth at dermanouelian.com
Mon Jan 15 19:46:50 UTC 2007


On Jan 15, 2007, at 11:25 AM, Christophe Zwecker wrote:

> 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---

Looks like it should work to me. Try putting in a bunch of print  
statements to track the values of the varaibles at each step and see  
if you can tell where the extension is changed to .nuv.


More information about the mythtv-users mailing list