diff options
author | metamuffin <metamuffin@disroot.org> | 2023-06-13 22:54:53 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-06-13 22:54:53 +0200 |
commit | 876fe4bd1f64ecd131947d327e587c1aa295e32e (patch) | |
tree | 2f1978ee4449ae9da5d9a0a23a2027c20c6f96cb /tools/src/bin/import.rs | |
parent | d3d1ce321e54bf6c7fbc8b55b8a06eeb44fb254a (diff) | |
download | jellything-876fe4bd1f64ecd131947d327e587c1aa295e32e.tar jellything-876fe4bd1f64ecd131947d327e587c1aa295e32e.tar.bz2 jellything-876fe4bd1f64ecd131947d327e587c1aa295e32e.tar.zst |
fix tmdb schema
Diffstat (limited to 'tools/src/bin/import.rs')
-rw-r--r-- | tools/src/bin/import.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/src/bin/import.rs b/tools/src/bin/import.rs index 08b88a4..b70c347 100644 --- a/tools/src/bin/import.rs +++ b/tools/src/bin/import.rs @@ -29,7 +29,6 @@ struct Args { enum Action { Create { path: PathBuf, - #[arg(short, long)] title: Option<String>, #[arg(short = 'T', long)] tmdb: Option<String>, @@ -76,7 +75,12 @@ fn main() -> anyhow::Result<()> { let results = tmdb_search(&title, &key)?; info!("results:"); for (i, r) in results.results.iter().enumerate() { - info!("\t[{i}] {}: {}", r.id, r.title); + info!( + "\t[{i}] {}: {} ({})", + r.id, + r.title, + r.overview.chars().take(100).collect::<String>() + ); } let res_index = if results.results.len() != 1 { stdin() @@ -120,7 +124,7 @@ fn main() -> anyhow::Result<()> { poster, backdrop, description: details.overview, - description_head: details.tagline, + description_head: details.tagline.unwrap_or_default(), title: details.title, duration: Default::default(), tracks: Default::default(), |