aboutsummaryrefslogtreecommitdiff
path: root/import
diff options
context:
space:
mode:
Diffstat (limited to 'import')
-rw-r--r--import/Cargo.toml2
-rw-r--r--import/src/lib.rs7
2 files changed, 8 insertions, 1 deletions
diff --git a/import/Cargo.toml b/import/Cargo.toml
index a05fec8..9ef517b 100644
--- a/import/Cargo.toml
+++ b/import/Cargo.toml
@@ -12,7 +12,7 @@ jellyremuxer = { path = "../remuxer" }
log = { workspace = true }
anyhow = "1.0.75"
-reqwest = { version = "0.11.22", features = ["json"] }
+reqwest = { workspace = true }
urlencoding = "2.1.3"
bincode = { version = "2.0.0-rc.3", features = ["derive"] }
diff --git a/import/src/lib.rs b/import/src/lib.rs
index bd8f586..33caa77 100644
--- a/import/src/lib.rs
+++ b/import/src/lib.rs
@@ -318,6 +318,13 @@ async fn process_source(
let mut node = Node::default();
let mut node_ext = ExtendedNode::default();
{
+ node.public.kind = Some(match kind {
+ TraktKind::Movie => NodeKind::Movie,
+ TraktKind::Show => NodeKind::Show,
+ TraktKind::Season => NodeKind::Season,
+ TraktKind::Episode => NodeKind::Episode,
+ _ => bail!("unexpected kind for trakt import"),
+ });
node.public.title = Some(trakt_object.title.to_owned());
if let Some(overview) = &trakt_object.overview {
node.public.description = Some(overview.to_owned())