https://bugzilla.wikimedia.org/show_bug.cgi?id=62008
Bug ID: 62008 Summary: Add commonsMedia to harvest_template Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Web browser: --- Mobile Platform: ---
As pointed out in https://www.wikidata.org/wiki/User:Underlying_lk/sandbox#commonsMedia_suppor... , it should be relatively easy to add image support.
elif claim.getType() == 'commonsMedia': mediasite = pywikibot.Site("commons", "commons") image = pywikibot.ImagePage(mediasite, value) claim.setTarget(image)
Instead of using ImagePage I think Link() should be used.
https://bugzilla.wikimedia.org/show_bug.cgi?id=62008
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@live.it Summary|Add commonsMedia to |Add commonsMedia datatype |harvest_template |to harvest_template.py
https://bugzilla.wikimedia.org/show_bug.cgi?id=62008
Maarten Dammers maarten@mdammers.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |maarten@mdammers.nl |media.org |
pywikipedia-bugs@lists.wikimedia.org