v2.32 — Defekte Musik erkennen (Magic Bytes, ffprobe, DB-Flag, UI)
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user