aboutsummaryrefslogtreecommitdiff
path: root/import
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-23 04:16:00 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-23 04:16:00 +0100
commite5712e82b369019457cf738a70ae97c67388cbc4 (patch)
treea3ab191ba5bfd1c900aaabb7e8535624630b7310 /import
parent0318a9f925f2507200a5b9b714f20560b770d7b0 (diff)
downloadjellything-e5712e82b369019457cf738a70ae97c67388cbc4.tar
jellything-e5712e82b369019457cf738a70ae97c67388cbc4.tar.bz2
jellything-e5712e82b369019457cf738a70ae97c67388cbc4.tar.zst
comments and minor changes
Diffstat (limited to 'import')
-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
))
}