diff options
-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()? |