Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added support for retrieving dutch image metadata #16

wants to merge 2 commits into


None yet
2 participants

Different languages of the wikipedia site return different names of image: the prefix "File:" is also translated.
For example, requesting image_urls when using the dutch wikipedia (nl.wikipedia.org) fails, image_metadata rejects the dutch prefix.

This commit enables support for dutch image metadata.

Etienne van Delden added some commits Mar 5, 2014

Etienne van Delden Fixed an issue with image metadata
Some images weren't retrieved by the Page class because a regex was
restricting filenames to begin with downcase "file:", but not "File:"
Etienne van Delden Added support for dutch filenames
"Bestand:" is accepted by the regex.
Also enabled svg images

kenpratt commented Apr 17, 2014

Thanks! I took your idea and made it a bit more generic so it would work with other languages as well (tested with nl.wikipedia.org and ru.wikipedia.org). Commit is here cde32d4, and I released a new version of the gem with that patch included: 1.3.3

@kenpratt kenpratt closed this Apr 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment