[Bug] Wikimedia script does not pull data for Public Domain images #1730
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟨 priority: medium
Not blocking but should be addressed soon
Bug Description
Currently, we do not parse the license information for the Public Domain and PDM-marked image data from Wikimedia correctly, and therefore discard those images.
For CC-licensed images, imageinfo object has the following data:
So, we use the following to get a license URL:
However, for Public Domain images, the
LicenseUrl
property has an empty value, so we discard the information for the image as invalid.To fix this, we can use the
LicenseShortName
field to get correct data:Expected behavior
We expect that the information for Wikimedia Public Domain images is saved to the database.
The text was updated successfully, but these errors were encountered: