Try reading primary tag first

This commit is contained in:
Agatha Lovelace 2022-09-22 21:20:39 +02:00
parent adec590fa2
commit 6f8ef695cd
Signed by: sorceress
GPG Key ID: 11BBCFC65FC9F401
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ pub async fn index_source(source: Source, mode: IndexMode, db: &DatabaseConnecti
let audio = read_from_path(file.path(), true).into_diagnostic()?;
let tags = audio.first_tag();
let tags = audio.primary_tag().or(audio.first_tag());
let properties = audio.properties();
let hash = hash_file(file.path())?;