hay / wiki-tools

Code for my Wikimedia Labs Tools account
http://tools.wmflabs.org/hay
91 stars 26 forks source link

"Files exists" API check only checks for MID, but should also check for QID #126

Open hay opened 1 year ago

hay commented 1 year ago

When checking if a file has already been depicted the tool currently only checks for the MID. However, a media file might depict multiple items, e.g.

https://commons.wikimedia.org/wiki/File:England_Olympic_polo_team_1920.jpg

Depicts multiple people, many of them might have a Wikidata item. Hence, the files exists API should check for the combination of MID / QID to prevent this problem.