brion(a)svn.wikimedia.org schreef:
* Asks server for mime type, but doesn't get it
back yet
That's due to a typo:
+
+ function findFile( $title, $time = false ) {
+ $info = $this->queryImage( array(
+ 'titles' => 'Image:' . $title->getText(),
+ 'prop' => 'imageinfo',
+ 'iiprop' =>
'timestamp|user|comment|url|size|sha1|metadata|mimetype' ) );
There it is. You should use iiprop=mime, not iiprop=mimetype.
The rest of this stuff looks good. You seem to have fixed the canonical
namespace thing. To what degree did you test/profile/benchmark this?
Roan Kattouw (Catrope)