mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-17 15:22:34 +02:00
perf(metadata): read complete SAF tags through descriptors
Add complete metadata reads with a display-name hint in Go and both native bridges. Read seekable SAF descriptors directly and use temporary copies only when direct reading fails. Add format parity tests for MP3, FLAC, M4A, and WAV plus a Dart bridge hint regression.
This commit is contained in:
@@ -1080,8 +1080,14 @@ class PlatformBridge {
|
||||
return _invokeMap('reEnrichFile', {'request_json': jsonEncode(request)});
|
||||
}
|
||||
|
||||
static Future<Map<String, dynamic>> readFileMetadata(String filePath) {
|
||||
return _invokeMap('readFileMetadata', {'file_path': filePath});
|
||||
static Future<Map<String, dynamic>> readFileMetadata(
|
||||
String filePath, {
|
||||
String? displayName,
|
||||
}) {
|
||||
return _invokeMap('readFileMetadata', {
|
||||
'file_path': filePath,
|
||||
'display_name': ?displayName,
|
||||
});
|
||||
}
|
||||
|
||||
/// Reads the tags and quality fields used for automatic Library display.
|
||||
|
||||
Reference in New Issue
Block a user