diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-03 00:40:42 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-03 00:40:42 +0100 |
commit | 78a1632e2f5d75a212a85a0da24bf325a1153426 (patch) | |
tree | 48edde53e0ad84367d395163e47813a0aba83860 | |
parent | e3daa6159f2b2048c2c07d349488e117e50285dd (diff) | |
download | jellything-78a1632e2f5d75a212a85a0da24bf325a1153426.tar jellything-78a1632e2f5d75a212a85a0da24bf325a1153426.tar.bz2 jellything-78a1632e2f5d75a212a85a0da24bf325a1153426.tar.zst |
fix import aspect
-rw-r--r-- | import/src/lib.rs | 1 | ||||
-rw-r--r-- | server/src/routes/ui/node.rs | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs index 4d39565..bc4b2ee 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -365,6 +365,7 @@ fn import_media_file( } if let Some((data, people)) = trakt_data { node.title = Some(data.title.clone()); + node.kind = NodeKind::Movie; // TODO if let Some(overview) = &data.overview { node.description = Some(overview.clone()) } diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index 63578be..7c89462 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -283,10 +283,12 @@ markup::define! { } pub fn aspect_class(kind: NodeKind) -> &'static str { + use NodeKind::*; match kind { - NodeKind::Video => "aspect-thumb", - NodeKind::Collection => "aspect-land", - NodeKind::Channel | NodeKind::Music | _ => "aspect-square", + Video | Episode => "aspect-thumb", + Collection => "aspect-land", + Season | Show | Series | Movie | ShortFormVideo => "aspect-port", + Channel | Music | Unknown => "aspect-square", } } |