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
       Web browser: ---
   Mobile Platform: ---

As pointed out in
, it should be relatively easy to add image support.

elif claim.getType() == 'commonsMedia':
    mediasite = pywikibot.Site("commons", "commons")
    image = pywikibot.ImagePage(mediasite, value)

Instead of using ImagePage I think Link() should be used.

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to