Page MenuHomePhabricator

Scribunto's mw.title file metadata should include length for audio/video files
Closed, ResolvedPublic


There's some file metadata available via mw.title:

I was thinking this functionality could be used to enhance which suggests users to manually include length information.

Related Objects

Event Timeline

Anomie added a subscriber: Anomie.

Should be easy enough, just add

'length' => $file->getLength(),

to the array returned by Scribunto_LuaTitleLibrary::getFileInfo() (link).

Change 650107 had a related patch set uploaded (by Shubham656jain; owner: Shubham656jain):
[mediawiki/extensions/Scribunto@master] Add length attribute in TitleLibrary.php

Change 650107 merged by jenkins-bot:
[mediawiki/extensions/Scribunto@master] Add length attribute in TitleLibrary.php

Ammarpad assigned this task to Shubham656jain.