From e8d524e5d095e4a197ceb8cbdc593edec70ebb47 Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Tue, 10 Dec 2024 23:36:12 +0530 Subject: [PATCH] chore(services/importer): log the total number of metadata --- crates/services/importer/src/plex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/services/importer/src/plex.rs b/crates/services/importer/src/plex.rs index f7465d92c0..5c32047d61 100644 --- a/crates/services/importer/src/plex.rs +++ b/crates/services/importer/src/plex.rs @@ -49,11 +49,12 @@ pub async fn import(input: DeployUrlAndKeyImportInput) -> Result { .await? .json::>() .await?; + let total = items.media_container.metadata.len(); for (idx, item) in items.media_container.metadata.into_iter().enumerate() { let Some(_lv) = item.last_viewed_at else { continue; }; - ryot_log!(debug, "Processing item {}", idx + 1); + ryot_log!(debug, "Processing item {}/{}", idx + 1, total); let gu_ids = item.guid.unwrap_or_default(); let Some(tmdb_id) = gu_ids .iter()