mirror of
https://github.com/Dummi26/musicdb.git
synced 2026-04-28 09:39:58 +02:00
feat: add warning for missing title when falling back to file stem
This commit is contained in:
@@ -267,6 +267,12 @@ fn main() {
|
||||
.title()
|
||||
.and_then(|title| {
|
||||
if title.trim().is_empty() {
|
||||
if verbosity > 0 {
|
||||
eprintln!(
|
||||
"Title of song {:?} not found in tags, using {} (from filename) instead!",
|
||||
song_path.display(), song_path.file_stem().unwrap().display(),
|
||||
);
|
||||
}
|
||||
None
|
||||
} else {
|
||||
Some(title.to_string())
|
||||
|
||||
Reference in New Issue
Block a user