Last modified: 2014-08-31 19:47:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57742, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55742 - prop=videoinfo API derivative data formatting inconsistent in JSON
prop=videoinfo API derivative data formatting inconsistent in JSON
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Michael Dale
https://commons.wikimedia.org/w/api.p...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-15 15:43 UTC by Brion Vibber
Modified: 2014-08-31 19:47 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2013-10-15 15:43:23 UTC
Testing prop=videoinfo for fetching derivative data:

https://commons.wikimedia.org/w/api.php?action=query&titles=File:Folgers.ogv&prop=videoinfo&viprop=derivatives&format=jsonfm

                        "derivatives": [
                            {
                                "src": "https://upload.wikimedia.org/wikipedia/commons/9/94/Folgers.ogv",
                                "type": "video/ogg; codecs=\"theora, vorbis\"",
                                "title": "Original Ogg file, 352 \u00d7 264 (637 kbps)",
                                "shorttitle": "Ogg source",
                                "width": "352",
                                "height": "264",
                                "bandwidth": 636645,
                                "framerate": 29.97002997003
                            },
                            {
                                "src": "https://upload.wikimedia.org/wikipedia/commons/transcoded/9/94/Folgers.ogv/Folgers.ogv.360p.webm",
                                "title": "Web streamable WebM (360P)",
                                "type": "video/webm; codecs=\"vp8, vorbis\"",
                                "shorttitle": "WebM 360P",
                                "transcodekey": "360p.webm",
                                "width": 352,
                                "height": 264,
                                "bandwidth": "574352",
                                "framerate": 29.97002997003
                            }

The 'width', 'height', and 'bandwidth' parameters variously appear as integers or strings... They should be consistently raw integers, so non-PHP clients don't have to explicitly coerce the type.
Comment 1 Gerrit Notification Bot 2013-10-15 15:56:24 UTC
Change 89846 had a related patch set uploaded by Brion VIBBER:
bug 55742: fix types in JSON videoinfo output

https://gerrit.wikimedia.org/r/89846
Comment 2 Gerrit Notification Bot 2014-08-31 19:28:03 UTC
Change 89846 had a related patch set uploaded by Brian Wolff:
Fix types in JSON videoinfo output

https://gerrit.wikimedia.org/r/89846
Comment 3 Gerrit Notification Bot 2014-08-31 19:29:37 UTC
Change 89846 merged by jenkins-bot:
Fix types in JSON videoinfo output

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links