[mythtv] [mythtv-commits] Ticket #7599: MythWeb - Odd Extension To Directly Downloaded Files

Robert Kulagowski rkulagow at gmail.com
Wed Nov 18 19:57:34 UTC 2009


MythTV wrote:
> #7599: MythWeb - Odd Extension To Directly Downloaded Files
> ---------------------------------------------------------+------------------
>  Reporter:  Mark Garland <mythtvtrac@…>                  |       Owner:  kormoc 
>      Type:  defect                                       |      Status:  new    
>  Priority:  minor                                        |   Milestone:  unknown
> Component:  Plugin - MythWeb                             |     Version:  0.22   
>  Severity:  medium                                       |     Mlocked:  0      
> ---------------------------------------------------------+------------------
>  As reported here: http://www.gossamer-
>  threads.com/lists/mythtv/users/408589
> 
>  In MythWeb, in the Recorded Programmes page, if I select "Direct Download"
>  next to a programme, the filename suggested has an odd extension of
>  ".mpg..mpg" resulting in a filename like "BBC News at Six.mpg..mpg".
> 
>  It makes little difference as the file can be easily renamed, and in many
>  cases works without renaming.
> 
>  Seems to have crept in since 0.22 as 0.21 worked fine for me.
>  Confirmed by one other user at the time of writing.

I'm seeing this as well; it looks like the culprit is probably here:

/mythtv-trunk/mythplugins/mythweb/modules/stream/stream_raw.pl

# Download filename
     my $name = $basename;
     if ($name =~ /^\d+_\d+\.\w+$/) {
         if ($title =~ /\w/) {
             $name = $title;
             if ($subtitle =~ /\w/) {
                 $name .= " - $subtitle";
             }
         }
         $name .= $suffix;
     }



We add the suffix again, or the suffix isn't being stripped first before 
the $name is being manipulated and then it's appended one more time.



More information about the mythtv-dev mailing list