Function commons_file_url

Source
pub fn commons_file_url(filename: &str, width: u32) -> String
Expand description

Where to download a Commons file, at a given width.

Special:FilePath rather than resolving the MD5-sharded path Commons actually stores the file under: it is a stable redirect Commons maintains for exactly this, and following it costs one request, not a second API call to a different service to compute a hash Aède has no business working out itself.