v2.32 — Defekte Musik erkennen (Magic Bytes, ffprobe, DB-Flag, UI)

This commit is contained in:
Dustin
2026-08-01 16:40:42 +02:00
parent 4a05c76199
commit 2d4c7c8b98
9 changed files with 352 additions and 4 deletions
+16
View File
@@ -168,4 +168,20 @@ class CloudService {
return false;
}
}
/// Ruft defekte/korrupte Songs vom Cloud-Server ab
Future<List<Map>> getCorrupted() async {
try {
final r = await http
.get(Uri.parse('$_base/api/cloud/corrupted'), headers: _authHeader)
.timeout(const Duration(seconds: 15));
if (r.statusCode == 200) {
final d = jsonDecode(r.body);
return List<Map>.from(d['corrupted'] ?? []);
}
} catch (e) {
MeloLogger().fehler('cloud_corrupted', e);
}
return [];
}
}