aboutsummaryrefslogtreecommitdiff
path: root/import/src
diff options
context:
space:
mode:
Diffstat (limited to 'import/src')
-rw-r--r--import/src/tmdb.rs2
-rw-r--r--import/src/trakt.rs6
2 files changed, 4 insertions, 4 deletions
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
))
}