aboutsummaryrefslogtreecommitdiff
path: root/import
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-29 18:03:06 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-29 18:03:06 +0100
commitdb511d3fe50f05329615f718515fab1b80d9e06a (patch)
tree7969fea01be100cbe4385ad13a14940a987ac513 /import
parent82e8a55a1496ae9132e13e7286fe1c0d57d586d3 (diff)
downloadjellything-db511d3fe50f05329615f718515fab1b80d9e06a.tar
jellything-db511d3fe50f05329615f718515fab1b80d9e06a.tar.bz2
jellything-db511d3fe50f05329615f718515fab1b80d9e06a.tar.zst
no direct redb access
Diffstat (limited to 'import')
-rw-r--r--import/src/lib.rs1
-rw-r--r--import/src/tmdb.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs
index c3daf7b..787c0cf 100644
--- a/import/src/lib.rs
+++ b/import/src/lib.rs
@@ -7,6 +7,7 @@ pub mod infojson;
pub mod tmdb;
pub mod trakt;
+
// use anyhow::{anyhow, bail, Context, Error, Ok};
// use async_recursion::async_recursion;
// use base64::Engine;
diff --git a/import/src/tmdb.rs b/import/src/tmdb.rs
index 787ba5b..522d9d6 100644
--- a/import/src/tmdb.rs
+++ b/import/src/tmdb.rs
@@ -50,7 +50,7 @@ impl Tmdb {
.client
.get(&format!(
"https://api.themoviedb.org/3/search/{kind}?query={}?api_key={}",
- query.replace(" ", "+"), // TODO this is horrible, please find a proper urlencoding library that supports + for space
+ query.replace(" ", "+"),
self.key
))
.send()