Last modified: 2012-12-13 18:08:21 UTC
In SpecialTimedMediaHandler: private $formats = array( 'ogg' => 'img_name LIKE "%.ogv" OR img_name LIKE "%.ogg"', 'webm' => 'img_name LIKE "%.webm"', ); Code like that isn't database agnostic. Should use $db->buildLike()
would be nice to add a file_extension row to avoid like queries all together
What about using the mime type to find the files, instead of the file extension? audio/webm application/ogg audio/ogg audio/x-ogg video/ogg video/x-ogg
(In reply to comment #1) > would be nice to add a file_extension row to avoid like queries all together Is there a feature request bug for doing that? If not, one should probably be opened....
https://gerrit.wikimedia.org/r/#/c/35140 uses img_minor_mime to replace the like query. https://gerrit.wikimedia.org/r/#/c/35139/ adds an index to image for better performance