diff options
Diffstat (limited to 'import/src')
-rw-r--r-- | import/src/lib.rs | 1 | ||||
-rw-r--r-- | import/src/matroska.rs | 6 | ||||
-rw-r--r-- | import/src/trakt.rs | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs index 0990ba1..7b19a61 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -410,6 +410,7 @@ fn import_media_file( NodeKind::Video }; node.title = Some(infojson.title); + node.subtitle = infojson.uploader; if let Some(desc) = infojson.description { node.description = Some(desc) } diff --git a/import/src/matroska.rs b/import/src/matroska.rs index 4694833..4ab1148 100644 --- a/import/src/matroska.rs +++ b/import/src/matroska.rs @@ -16,7 +16,7 @@ use jellybase::{ cache::{cache_file, cache_memory}, common::Asset, }; -use log::info; +use log::{info, warn}; use std::{ fs::File, io::{BufReader, ErrorKind, Read, Write}, @@ -41,7 +41,7 @@ pub(crate) fn matroska_metadata(path: &Path) -> Result<Arc<Option<MatroskaMetada return Ok(None); } - info!("reading media file {path:?}"); + info!("reading {path:?}"); let mut file = BufReader::new(File::open(path)?); let mut file = file.by_ref().take(u64::MAX); @@ -103,7 +103,7 @@ pub(crate) fn matroska_metadata(path: &Path) -> Result<Arc<Option<MatroskaMetada break; } id => { - eprintln!("unknown top-level element {id:x}"); + warn!("unknown top-level element {id:x}"); seg.consume()?; } } diff --git a/import/src/trakt.rs b/import/src/trakt.rs index 1daee77..52a5cb0 100644 --- a/import/src/trakt.rs +++ b/import/src/trakt.rs @@ -1,9 +1,9 @@ -use anyhow::Context; /* This file is part of jellything (https://codeberg.org/metamuffin/jellything) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ +use anyhow::Context; use bincode::{Decode, Encode}; use jellybase::{ cache::async_cache_memory, |