fix(metadata): resolve audio format and local artwork

This commit is contained in:
zarzet committed 2026-07-22 15:55:30 +07:00
1 parent b2726db84a
commit 87376ee73b
5 files changed
+72 -43

No files matched your search

+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',
() {