Opened 13 years ago

Closed 13 years ago

#3473 closed defect (fixed)

Video module in Mythweb cannot scan for OGM files

Reported by: Jo Shields <directhex@…> Owned by: Rob Smith
Priority: minor Milestone: unknown
Component: mythweb Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


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)

comment:1 Changed 13 years ago by xris

Owner: changed from xris to Rob Smith

comment:2 Changed 13 years ago by Rob Smith

Resolution: fixed
Status: newclosed

(In [13479]) Fixes #3473, this adds in a easy way to add extentions as video files no matter what the mime type returns

Note: See TracTickets for help on using tickets.