https://bugzilla.wikimedia.org/show_bug.cgi?id=37764

--- Comment #4 from Antoine "hashar" Musso <has...@free.fr> 2012-06-25 20:03:19 
UTC ---
ForeignAPIFile does a query to the api.php, something like:

curl
'http://commons.wikimedia.org/w/api.php?titles=File%3AAlice_in_Wonderland.djvu&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&iimetadataversion=2&format=json&action=query&redirects=true'

The json returned does not have any metadata apparently:

{
  "query": {
    "normalized": [{
      "from": "File:Alice_in_Wonderland.djvu",
      "to": "File:Alice in Wonderland.djvu"
    }],
    "pages": {
      "3567014": {
        "pageid": 3567014,
        "ns": 6,
        "title": "File:Alice in Wonderland.djvu",
        "imagerepository": "local",
        "imageinfo": [{
          "timestamp": "2007-10-01T21:06:20Z",
          "user": "Yann",
          "size": 3548027,
          "width": 2550,
          "height": 3562,
          "pagecount": 114,
          "comment": "
                    {
                        {Information\n|Description=Alice in
Wonderland\n|Source=http:\/\/gutenberg.cc\/DjVu.htm\n|Date=1865\n|Author=Lewis
Carroll\n|Permission=\n|other_versions=\n}
                    }
                    \n\n[[Category:En Wikisource book djvu]]\n",
          "url":
"http:\/\/upload.wikimedia.org\/wikipedia\/commons\/2\/29\/Alice_in_Wonderland.djvu",
          "descriptionurl":
"http:\/\/commons.wikimedia.org\/wiki\/File:Alice_in_Wonderland.djvu",
          "sha1": "0c0fff99f7c61272a602edb870ff59f3564e3723",
          "metadata": null,
          "mime": "image\/vnd.djvu"
        }]
      }
    }
  }
}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to