diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-20 02:26:13 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-20 02:26:13 +0100 |
commit | 3086e768ab4e64e47a50d7f6a71a815c4f110bd3 (patch) | |
tree | 39be440ad033c8e79b2c4816d5195b7df85f4ed5 | |
parent | 46c251655db7bb3d9aa814b1a5dde85336b0b9b1 (diff) | |
download | jellything-3086e768ab4e64e47a50d7f6a71a815c4f110bd3.tar jellything-3086e768ab4e64e47a50d7f6a71a815c4f110bd3.tar.bz2 jellything-3086e768ab4e64e47a50d7f6a71a815c4f110bd3.tar.zst |
more import logging
-rw-r--r-- | import/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs index a4d1611..abaf7fd 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -199,6 +199,7 @@ pub async fn import_path( k? } } else { + info!("reading {path:?}"); let opts = File::open(&path).context(anyhow!("opening {path:?}"))?; let opts: ImportOptions = if path.extension() == Some(OsStr::new("jelly")) { serde_json::from_reader(opts).context(anyhow!("parsing json {path:?}"))? @@ -239,6 +240,7 @@ async fn process_source( match s { ImportSource::Override(n) => insert_node(&id, n)?, ImportSource::Tmdb { id: tid } => { + info!("tmdb lookup {id}"); let key = CONF .tmdb_api_key .as_ref() @@ -291,6 +293,7 @@ async fn process_source( ignore_chapters, ignore_metadata, } => { + info!("media import {location:?}"); let media_path = location.path(); if media_path.is_dir() { let mut node = Node::default(); @@ -417,6 +420,7 @@ async fn process_source( } } ImportSource::Federated { host } => { + info!("federated import of {id:?} from {host:?}"); let session = fed.get_session(&host).await.context("creating session")?; import_remote(id.clone(), &host, db, &session, index_path) @@ -424,6 +428,7 @@ async fn process_source( .context("federated import")? } ImportSource::AutoChildren { path: cpath } => { + info!("auto children at {path:?}"); let paths = cpath .unwrap_or_else(|| path.parent().unwrap().to_path_buf()) .read_dir()? |