Skip to content
Snippets Groups Projects
Unverified Commit 792dfeb2 authored by Adam Williamson's avatar Adam Williamson Committed by GitHub
Browse files

Merge pull request #273 from mitar/patch-1

Add mime to imageinfo
parents b1eb9772 8e3aaeec
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ class Image(mwclient.page.Page): ...@@ -9,7 +9,7 @@ class Image(mwclient.page.Page):
site, name, info, extra_properties={ site, name, info, extra_properties={
'imageinfo': ( 'imageinfo': (
('iiprop', ('iiprop',
'timestamp|user|comment|url|size|sha1|metadata|archivename'), 'timestamp|user|comment|url|size|sha1|metadata|mime|archivename'),
) )
} }
) )
...@@ -24,7 +24,7 @@ class Image(mwclient.page.Page): ...@@ -24,7 +24,7 @@ class Image(mwclient.page.Page):
""" """
return mwclient.listing.PageProperty( return mwclient.listing.PageProperty(
self, 'imageinfo', 'ii', self, 'imageinfo', 'ii',
iiprop='timestamp|user|comment|url|size|sha1|metadata|archivename' iiprop='timestamp|user|comment|url|size|sha1|metadata|mime|archivename'
) )
def imageusage(self, namespace=None, filterredir='all', redirect=False, def imageusage(self, namespace=None, filterredir='all', redirect=False,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment