diff options
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()? |