diff options
author | metamuffin <metamuffin@disroot.org> | 2024-03-30 12:33:43 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-03-30 12:33:43 +0100 |
commit | b9fb4f7803eb648094c268f65ebd2613ca9e0953 (patch) | |
tree | 3beb6fe3d35fb79baad7990503057bbf3d1197a6 /import | |
parent | d2d58e5ce076a00ad97836a036bcdacfb423dfcb (diff) | |
download | jellything-b9fb4f7803eb648094c268f65ebd2613ca9e0953.tar jellything-b9fb4f7803eb648094c268f65ebd2613ca9e0953.tar.bz2 jellything-b9fb4f7803eb648094c268f65ebd2613ca9e0953.tar.zst |
make shows semi-work
Diffstat (limited to 'import')
-rw-r--r-- | import/Cargo.toml | 2 | ||||
-rw-r--r-- | import/src/lib.rs | 7 |
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()) |