fix: harden download errors and re-enrich sidecars

This commit is contained in:
zarzet
2026-06-02 00:58:40 +07:00
parent 4f5163be01
commit 56a89c5fc6
35 changed files with 742 additions and 99 deletions
+9
View File
@@ -817,6 +817,15 @@ class PlatformBridge {
return map['success'] == true;
}
static Future<bool> writeSafSidecarLrc(String safUri, String lyrics) async {
final result = await _channel.invokeMethod('writeSafSidecarLrc', {
'saf_uri': safUri,
'lyrics': lyrics,
});
final map = _decodeRequiredMapResult(result, 'writeSafSidecarLrc');
return map['success'] == true;
}
static Future<void> startDownloadService({
String trackName = '',
String artistName = '',