From e5712e82b369019457cf738a70ae97c67388cbc4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 23 Jan 2024 04:16:00 +0100 Subject: comments and minor changes --- import/src/tmdb.rs | 2 +- import/src/trakt.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'import/src') diff --git a/import/src/tmdb.rs b/import/src/tmdb.rs index c349edf..5dbc335 100644 --- a/import/src/tmdb.rs +++ b/import/src/tmdb.rs @@ -51,7 +51,7 @@ impl Tmdb { .client .get(&format!( "https://api.themoviedb.org/3/search/{kind}?query={}?api_key={}", - query.replace(" ", "+"), + query.replace(" ", "+"), // TODO this is horrible, please find a proper urlencoding library that supports + for space self.key )) .send() diff --git a/import/src/trakt.rs b/import/src/trakt.rs index 1d7b8f7..08962c6 100644 --- a/import/src/trakt.rs +++ b/import/src/trakt.rs @@ -185,7 +185,7 @@ pub enum TraktPeopleGroup { Art, #[serde(rename = "crew")] Crew, - #[serde(rename = "costume & make-up")] + #[serde(rename = "costume & make-up")] //? they really use that in as a key?! CostumeMakeup, #[serde(rename = "directing")] Directing, @@ -258,10 +258,10 @@ pub struct TraktMediaObject { impl Display for TraktSearchResult { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!( - "{}: {} ({}) \x1b[2m[{}]\x1b[0m", - self.r#type.to_string(), + "{} ({}) \x1b[2m{} [{}]\x1b[0m", self.inner.inner().title, self.inner.inner().year.unwrap_or(0), + self.r#type.to_string(), self.inner.inner().ids )) } -- cgit v1.2.3-70-g09d2