Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12129 closed Patch - Bug Fix (fixed)

Mime type set incorrectly by mythweb/modules/video/stream.php

Reported by: deg@… Owned by: Karl Egly
Priority: minor Milestone: 0.26.2
Component: Plugin - MythWeb Version: Unspecified
Severity: medium Keywords: mythweb videos stream.php
Cc: Ticket locked: no

Description

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.

Attachments (1)

stream.php (1.7 KB) - added by deg@… 6 years ago.
Patched mythweb/modules/video/stream.php

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by deg@…

Attachment: stream.php added

Patched mythweb/modules/video/stream.php

comment:1 Changed 6 years ago by Karl Dietz <dekarl@…>

Resolution: fixed
Status: newclosed

In aac42919007aa5296e296d4aad4eeed06920a14f/mythweb:

Fix mime type for video streaming

Patch by deg

Fixes #12129

comment:2 Changed 6 years ago by Karl Dietz <dekarl@…>

In 3793da2ac7d5baa43b403dbfa10b4919aadece2b/mythweb:

Fix mime type for video streaming

Patch by deg

Fixes #12129
(cherry picked from commit aac42919007aa5296e296d4aad4eeed06920a14f)

comment:3 Changed 6 years ago by Karl Dietz <dekarl@…>

In 4af5dcdbc83658f48ca07b50e610f4c4209ec242/mythweb:

Fix mime type for video streaming

Patch by deg

Fixes #12129
(cherry picked from commit aac42919007aa5296e296d4aad4eeed06920a14f)

comment:4 Changed 6 years ago by Karl Egly

Milestone: unknown0.26.2
Owner: changed from Rob Smith to Karl Egly
Type: Bug Report - GeneralPatch - Bug Fix
Note: See TracTickets for help on using tickets.