Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

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

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


rkulagow at gmail

Nov 18, 2009, 11:57 AM

Post #1 of 1 (480 views)
Permalink
Re: [mythtv-commits] Ticket #7599: MythWeb - Odd Extension To Directly Downloaded Files

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.

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.