Skip to content

Commit

Permalink
chore(services/importer): log the total number of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Dec 10, 2024
1 parent c097c4a commit e8d524e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/services/importer/src/plex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ pub async fn import(input: DeployUrlAndKeyImportInput) -> Result<ImportResult> {
.await?
.json::<plex_models::PlexMediaResponse<plex_models::PlexMetadata>>()
.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()
Expand Down

0 comments on commit e8d524e

Please sign in to comment.