mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 06:52:18 +02:00
fix(metadata): recognize featured artist credits consistently
Handle feature and featured separators across display, Android finalization and Rust tag writing. Split conjunction credits only when separate artist IDs confirm them, and offer a picker for multi-artist navigation.
This commit is contained in:
1 parent
9ea2647c39
commit
4eef5542be
6 files changed
+105
-10
No files matched your search
@@ -2,6 +2,23 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:spotiflac_android/utils/artist_utils.dart';
|
||||
|
||||
void main() {
|
||||
test('featured variants and confirmed conjunction credits are clickable', () {
|
||||
expect(splitArtistNames('One featured Two'), ['One', 'Two']);
|
||||
expect(splitArtistNames('One feature Two'), ['One', 'Two']);
|
||||
expect(primaryArtistTagValue('One featured Two'), 'One');
|
||||
expect(primaryArtistTagValue('One feature Two'), 'One');
|
||||
expect(splitArtistNames('One and Two', creditedArtistCount: 2), [
|
||||
'One',
|
||||
'Two',
|
||||
]);
|
||||
expect(splitArtistNames('Florence and the Machine'), [
|
||||
'Florence and the Machine',
|
||||
]);
|
||||
expect(
|
||||
splitArtistNames('Florence and the Machine', creditedArtistCount: 1),
|
||||
['Florence and the Machine'],
|
||||
);
|
||||
});
|
||||
test('primary artist prefers the first album artist', () {
|
||||
expect(
|
||||
primaryArtistName(
|
||||
|
||||
Reference in new issue
Block a user