[mythtv-commits] Ticket #12129: Mime type set incorrectly by mythweb/modules/video/stream.php
MythTV
noreply at mythtv.org
Mon Apr 28 15:02:16 UTC 2014
#12129: Mime type set incorrectly by mythweb/modules/video/stream.php
-------------------------------------+-------------------------------------
Reporter: deg@… | Owner: kormoc
Type: Bug Report - | Status: new
General | Milestone: unknown
Priority: minor | Version: Unspecified
Component: Plugin - MythWeb | Keywords: mythweb videos
Severity: medium | stream.php
Ticket locked: 0 |
-------------------------------------+-------------------------------------
When trying to view a movie ( not recorded TV ) via mythweb, I am getting
invalid content type. In looking at the header it is being set as:
Content-Type: '''applicatoin/octet-stream'''
This is misspelled and should read: '''application/octet-stream''' .
This is on line 52 of modules/video/stream.php .
Also, it is ALWAYS setting it to the default mime type no matter what the
file extension is.
'''Line 23 of modules/video/stream.php needs to be changed as follows:'''
From: switch (substr($fname, strrpos($fname, '.'))) {
To : switch (substr($fname, strrpos($fname, '.')+1)) {
I have locally modified my files and this module now works correctly.
Please fix, so I do not have to re-apply my fixes every release.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12129>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list