Einseitige Playlist-Sicherung: melden, merken, bei leerer Tabelle holen

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012A2pmbnVNPiHdyf2GW8eLP
This commit is contained in:
Hermes (Server)
2026-08-27 13:43:20 +02:00
co-authored by Claude Sonnet 5
parent 0519c68b26
commit faabf28abc
4 changed files with 352 additions and 4 deletions
+4
View File
@@ -546,6 +546,10 @@ class MeloDb extends _$MeloDb {
.write(SongsCompanion(cloudId: Value(cloudId)));
}
Future<Song?> songByCloudId(String cloudId) =>
(select(songs)..where((s) => s.cloudId.equals(cloudId)))
.getSingleOrNull();
/// Titel, die am Server gelöscht wurden, auch auf dem Gerät als gelöscht
/// markieren. Grabstein statt echtem Löschen — sonst legt der nächste Scan
/// sie wieder an.