diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-15 02:57:31 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-15 02:57:31 +0100 |
| commit | c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7 (patch) | |
| tree | 2ea722aff33252ff2e3662faee63cabb223339c3 /import/src/plugins/wikimedia_commons.rs | |
| parent | 8c0ee6d17fe0dbd7748e7b60ff01a0e8f25faa51 (diff) | |
| download | jellything-c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7.tar jellything-c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7.tar.bz2 jellything-c836b650eaf4ba33b1cfd2b475971b3ccc9f69b7.tar.zst | |
new update_node_init
Diffstat (limited to 'import/src/plugins/wikimedia_commons.rs')
| -rw-r--r-- | import/src/plugins/wikimedia_commons.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/import/src/plugins/wikimedia_commons.rs b/import/src/plugins/wikimedia_commons.rs index 58a28ae..c849b61 100644 --- a/import/src/plugins/wikimedia_commons.rs +++ b/import/src/plugins/wikimedia_commons.rs @@ -10,7 +10,6 @@ use crate::{ }; use anyhow::{Context, Result}; use jellycache::{EscapeKey, cache_store}; -use jellycommon::Asset; use reqwest::{ Client, ClientBuilder, header::{HeaderMap, HeaderName, HeaderValue}, @@ -40,7 +39,7 @@ impl WikimediaCommons { Self { client } } - pub fn image_by_filename(&self, filename: String, rt: &Handle) -> Result<Asset> { + pub fn image_by_filename(&self, filename: String, rt: &Handle) -> Result<String> { cache_store( format!("ext/wikimedia-commons/image/{}.image", EscapeKey(&filename)), move || { @@ -61,7 +60,6 @@ impl WikimediaCommons { }, ) .context("mediawiki image by filename") - .map(Asset) } } |