[mythtv-commits] Ticket #6189: Erroneous Content-Range in mythweb raw stream

MythTV mythtv at cvs.mythtv.org
Sat Feb 21 16:24:48 UTC 2009


#6189: Erroneous Content-Range in mythweb raw stream
-----------------------------------------------------+----------------------
 Reporter:  Tom Dexter <digitalaudiorock at gmail.com>  |        Owner:  xris      
     Type:  defect                                   |       Status:  new       
 Priority:  minor                                    |    Milestone:  unknown   
Component:  Plugin - MythWeb                         |      Version:  0.21-fixes
 Severity:  medium                                   |   Resolution:            
  Mlocked:  0                                        |  
-----------------------------------------------------+----------------------

Comment(by Tom Dexter <digitalaudiorock at hotmail.com>):

 I'm attaching a modified diff for trunk that contains these changes for
 both stream_mp4.pl and stream_raw.pl, as they both use content range.
 Again note that I've only been able to test the 0.21-fixes version of the
 change.

 On a somewhat related note, I was also wondering what your thought might
 be on this suggestion: In the 0.21-fixes version that I'm running, in
 handler.pl, I've added the following condition around the loop that prints
 the raw content:

 if ($ENV{'REQUEST_METHOD'} ne 'HEAD') {
 }

 This allows for programs like wget that can use a separate head request to
 get the "pretty" file name from the content disposition header, for
 example:

 wget --content-disposition
 http://mythback/mythweb/pl/stream/1131/1235181600

 ...which will save using the program title.  Perhaps wget is the only
 program that uses this extra round trip head approach to doing that, but I
 find it to be a really nice feature.  I like to use wget for grabbing
 files off of mythweb because I can limit the download speed, thus
 preventing the download from saturating the backend network connection.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6189#comment:1>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list