fix(metadata): resolve audio format and local artwork

This commit is contained in:
zarzet
2026-07-22 15:55:30 +07:00
parent b2726db84a
commit 87376ee73b
5 changed files with 72 additions and 43 deletions
+15
View File
@@ -586,6 +586,21 @@ void main() {
});
group('audio conversion utils', () {
test('distinguishes an ALAC codec from its M4A container', () {
expect(normalizeAudioFormatValue('ALAC'), 'alac');
expect(
detectedAudioFormatFromMetadata({
'audio_codec': 'alac',
'format': 'm4a',
}),
'alac',
);
expect(
detectedAudioFormatFromMetadata({'audio_codec': '', 'format': 'alac'}),
'alac',
);
});
test(
'detects Dolby formats from stored scan format before file extension',
() {