mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-08 09:01:10 +02:00
fix(metadata): resolve audio format and local artwork
This commit is contained in:
1 parent
b2726db84a
commit
87376ee73b
5 files changed
+72
-43
No files matched your search
@@ -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