A tool for obtaining metadata about media stored on Wikimedia Commons.
Website: https://commonsapi.toolforge.org/
Repository: https://gitlab.wikimedia.org/toolforge-repos/commonsapi/
A tool for obtaining metadata about media stored on Wikimedia Commons.
Website: https://commonsapi.toolforge.org/
Repository: https://gitlab.wikimedia.org/toolforge-repos/commonsapi/
Great, thank you a lot again!
@Sebkur It took me a while, but here is a PR containing the above patch: https://github.com/sebkur/commonsapi/pull/1
Alright, here's a Github mirror: https://github.com/sebkur/commonsapi
Thanks for the patch. I find the collaboration here on phabricator a bit clumsy, it doesn't seem to have the notion of a pull request. Maybe I'll create a mirror on Github so that it becomes a bit easier to submit and review a patch. Also it'll be easier to give credit to your contributions.
Logged another issue for the meta item name attribute problem: T268902
With this patch the relevant JSON output now looks like this:
"meta": {
"item": [
{
"name": "Make",
"value": "Canon"
},
{
"name": "Model",
"value": "Canon EOS 30D"
},
{
"name": "XResolution",
"value": "350/1"
},
{
"name": "YResolution",
"value": "350/1"
},
{
"name": "ResolutionUnit",
"value": "2"
},
{
"name": "Software",
"value": "Paint Shop Pro Photo 11.20"
},
{
"name": "DateTime",
"value": "2007:09:07 23:17:35"
},Patch to fix this issue:
@Sebkur Thanks for merging that. I didn't notice the issue with the name attribute of <item>... I will have a look at it soon, see if I can come up with a patch to fix it
I just closed this, but feel free to comment on this thread :)
Great, seems to work. I looked at this https://commonsapi.toolforge.org/?image=Sa-warthog.jpg&thumbwidth=150&thumbheight=150&versions&meta&format=json
and noticed that the name=... attribute does not appear in the generated JSON, any ideas how to fix that?
JSON support sounds like a very good idea to me. Thanks for the patch!
Here's a patch which implements this:
@Sebkur Your project Tool-commonsapi has now been created, Please update the description of your project with a basic blurb about the tool.