diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-03 15:36:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-03 15:36:34 +0200 |
commit | 9898998344f9897d59b629ce643a0e243f5e7b09 (patch) | |
tree | 8571f09510b9e940c0cf86b714e24dce226557ef /tools/src/bin | |
parent | c0828abd8a0f02240520f3c36419d3a83086fd2b (diff) | |
download | jellything-9898998344f9897d59b629ce643a0e243f5e7b09.tar jellything-9898998344f9897d59b629ce643a0e243f5e7b09.tar.bz2 jellything-9898998344f9897d59b629ce643a0e243f5e7b09.tar.zst |
federated assets and refactored asset paths
Diffstat (limited to 'tools/src/bin')
-rw-r--r-- | tools/src/bin/import.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/src/bin/import.rs b/tools/src/bin/import.rs index 9e3dc4e..78c8646 100644 --- a/tools/src/bin/import.rs +++ b/tools/src/bin/import.rs @@ -5,7 +5,7 @@ */ use anyhow::Context; use clap::{Parser, Subcommand}; -use jellycommon::{MediaInfo, Node, NodeKind, NodePrivate, NodePublic}; +use jellycommon::{AssetLocation, MediaInfo, Node, NodeKind, NodePrivate, NodePublic}; use jellymatroska::read::EbmlReader; use jellyremuxer::import::import_read; use jellytools::tmdb::{tmdb_details, tmdb_image, tmdb_search}; @@ -167,8 +167,8 @@ fn main() -> anyhow::Result<()> { let node = Node { private: NodePrivate { import: None, - backdrop: backdrop.clone(), - poster: poster.clone(), + backdrop: backdrop.clone().map(AssetLocation::Library), + poster: poster.clone().map(AssetLocation::Library), source, }, public: NodePublic { |