Page MenuHomePhabricator

[S] [wmf.25] MediaSearch: Audio mid files do not have audio icons
Closed, ResolvedPublic

Description

Found when checking T258298.

  1. On commons wmf.25 go to Special:MediaSearch
  2. Select Audio tab and select mid as a file format option.
  3. Enter search item(s) - e.g. "Chopin', 'march' ( or just click on the link https://commons.wikimedia.org/wiki/Special:MediaSearch?type=audio&q=waltz). Many search results won't display the icon.

Screen Shot 2021-01-06 at 2.48.45 PM.png (543×866 px, 67 KB)

Note: Seems that the issue is specific to mid format only.

Event Timeline

Etonkovidova renamed this task from [wmf.25] MediaSearch: Audio mid files do not audio icons to [wmf.25] MediaSearch: Audio mid files do not have audio icons.Jan 6 2021, 10:49 PM
Etonkovidova updated the task description. (Show Details)
Etonkovidova added subscribers: CBogen, AnneT, Ramsey-WMF.
This comment was removed by CBogen.
CBogen renamed this task from [wmf.25] MediaSearch: Audio mid files do not have audio icons to [S] [wmf.25] MediaSearch: Audio mid files do not have audio icons.Jan 19 2021, 5:28 PM

It looks like this snippet is wrapped inside a imageinfo[0].duration condition.
Only the actual duration should not show up if we don't know the duration - the icon & mime type (if we know the mime type) should still show up, regardless of whether or not we know the duration.

Change 663186 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Always display icons for audio/video files

https://gerrit.wikimedia.org/r/663186

Change 663186 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Always display icons for audio/video files

https://gerrit.wikimedia.org/r/663186