From 5e5bd9841a78bc5ef55e712093d13524a88ab677 Mon Sep 17 00:00:00 2001 From: CDrummond Date: Wed, 5 Mar 2025 18:43:05 +0000 Subject: [PATCH] ...and use ffprobe when updating tags. --- src/db.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 869bae1..68e3a67 100644 --- a/src/db.rs +++ b/src/db.rs @@ -6,6 +6,8 @@ * **/ + #[cfg(not(feature = "libav"))] +use crate::ffmpeg; use crate::tags; use bliss_audio::{Analysis, AnalysisIndex}; use indicatif::{ProgressBar, ProgressStyle}; @@ -284,7 +286,13 @@ impl Db { let track_path = mpath.join(&dbtags.file); if track_path.exists() { let path = String::from(track_path.to_string_lossy()); - let ftags = tags::read(&path, false); + let mut ftags = tags::read(&path, false); + + #[cfg(not(feature = "libav"))] + if ftags.is_empty() { + ftags = ffmpeg::read_tags(&path); + } + if ftags.is_empty() { log::error!("Failed to read tags of '{}'", dbtags.file); } else if ftags != dtags {