mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-21 02:17:13 +02:00
fix(metadata): resolve audio format and local artwork
This commit is contained in:
@@ -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',
|
||||
() {
|
||||
|
||||
Reference in New Issue
Block a user