mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-26 19:31:45 +02:00
perf(metadata): avoid SAF copies during quality probes
This commit is contained in:
@@ -524,7 +524,10 @@ class DownloadHistoryNotifier extends Notifier<DownloadHistoryState> {
|
||||
lookupItems: _lookupItemsWithUpdates([updated]),
|
||||
);
|
||||
await _db.upsert(updated.toJson());
|
||||
_bumpHistoryRevision();
|
||||
// Swiping through older tracks can backfill several quality records in a
|
||||
// short burst. Coalesce their DB-derived Library refreshes just like
|
||||
// download completion writes instead of rebuilding every view per swipe.
|
||||
_scheduleIndexBump();
|
||||
}
|
||||
|
||||
Future<void> updateMetadataForItem({
|
||||
|
||||
@@ -392,7 +392,7 @@ extension _HistoryStartupMaintenance on DownloadHistoryNotifier {
|
||||
}
|
||||
|
||||
try {
|
||||
final result = await PlatformBridge.readFileMetadata(filePath);
|
||||
final result = await PlatformBridge.readDisplayAudioMetadata(filePath);
|
||||
final error = result['error'];
|
||||
if (error != null) {
|
||||
if (_isPermanentProbeError(error.toString())) {
|
||||
|
||||
Reference in New Issue
Block a user