Debug playlist lecture

This commit is contained in:
2025-12-28 15:27:48 +01:00
parent 2f77913caa
commit 02a44e9e75
8 changed files with 125 additions and 8 deletions

View File

@@ -135,6 +135,14 @@ impl RadioParadiseSource {
let token = mgr.register_callback(move |event| {
let pid = pid_clone.clone();
if event.playlist_id == pid {
// Ignorer PkUpdated - pas de notification UPnP (évite le reload côté control point)
if matches!(event.kind, pmoplaylist::PlaylistEventKind::PkUpdated { .. }) {
tracing::debug!(
"PK swap in playlist {} - no UPnP notification (prevents playback restart)",
event.playlist_id
);
return;
}
// On ne réagit qu'aux mises à jour structurelles (ajout/suppression)
if !matches!(event.kind, pmoplaylist::PlaylistEventKind::Updated) {
return;