diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-07 16:21:41 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-07 16:21:41 +0100 |
commit | 9ff2358adca561b7723e9c4d79efce87025d2e4e (patch) | |
tree | e5f4f2e35df718dd9bc65623cc625f7ac11c2811 /import/src/tmdb.rs | |
parent | 0bba75241d59c64375cfece494eb9dcdbaa664fc (diff) | |
download | jellything-9ff2358adca561b7723e9c4d79efce87025d2e4e.tar jellything-9ff2358adca561b7723e9c4d79efce87025d2e4e.tar.bz2 jellything-9ff2358adca561b7723e9c4d79efce87025d2e4e.tar.zst |
clippy
Diffstat (limited to 'import/src/tmdb.rs')
-rw-r--r-- | import/src/tmdb.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/import/src/tmdb.rs b/import/src/tmdb.rs index 70e95ce..1e7849f 100644 --- a/import/src/tmdb.rs +++ b/import/src/tmdb.rs @@ -50,7 +50,7 @@ impl Tmdb { info!("searching tmdb: {query:?}"); Ok(self .client - .get(&format!( + .get(format!( "https://api.themoviedb.org/3/search/{kind}?query={}?api_key={}", query.replace(" ", "+"), self.key @@ -71,7 +71,7 @@ impl Tmdb { info!("fetching details: {id:?}"); Ok(self .client - .get(&format!( + .get(format!( "https://api.themoviedb.org/3/{kind}/{id}?api_key={}", self.key, )) @@ -88,7 +88,7 @@ impl Tmdb { async_cache_memory(&["api-tmdb-search", &format!("{id}")], || async move { Ok(self .client - .get(&format!( + .get(format!( "https://api.themoviedb.org/3/person/{id}/images?api_key={}", self.key, )) @@ -105,7 +105,7 @@ impl Tmdb { info!("downloading image {path:?}"); let mut res = self .image_client - .get(&format!("https://image.tmdb.org/t/p/original{path}")) + .get(format!("https://image.tmdb.org/t/p/original{path}")) .send() .await? .error_for_status()?; @@ -127,7 +127,7 @@ impl Tmdb { info!("tmdb episode details {series_id} S={season} E={episode}"); Ok(self .image_client - .get(&format!("https://api.themoviedb.org/3/tv/{series_id}/season/{season}/episode/{episode}?api_key={}", self.key)) + .get(format!("https://api.themoviedb.org/3/tv/{series_id}/season/{season}/episode/{episode}?api_key={}", self.key)) .send() .await? .error_for_status()? |