Opened 17 years ago
Closed 17 years ago
#3473 closed defect (fixed)
Video module in Mythweb cannot scan for OGM files
Reported by: | Owned by: | Rob Smith | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythweb | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
In mythweb/modules/video/scan.php, the decision is made whether or not a file should be considered a video (and therefore added to the DB) based on the MIME type identified by "file -ib $file" containing a "video" section, e.g.:
directhex@despair:~$ file -ib /data/Media/Video/Movies/Elephant\'s\ Dream.avi video/x-msvideo
However, there's a problem:
directhex@despair:~$ file -ib /data/Media/Video/Movies/Finding\ Nemo.ogm application/ogg
This is further complicated by the same MIME type being used for both OGM video and Vorbis audio files (which should not be included)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [13479]) Fixes #3473, this adds in a easy way to add extentions as video files no matter what the mime type returns