diff --git a/playtube/discord_rpc.py b/playtube/discord_rpc.py index 7137382..6acb9b0 100644 --- a/playtube/discord_rpc.py +++ b/playtube/discord_rpc.py @@ -88,11 +88,18 @@ def build_presence_payload(info: dict[str, Any], session_start: int) -> dict[str duration = info.get("duration") or 0 current_time = info.get("currentTime") or 0 - if playing: - start_ts = int(time.time() - current_time) - payload["start"] = start_ts - if duration and duration > 0: - payload["end"] = start_ts + int(duration) + # IMMER start/end mitschicken, unabhaengig vom playing-Status - nicht nur wenn + # playing=true. Discord ersetzt "timestamps" bei einem SET_ACTIVITY-Update ohne + # diese Felder offenbar nicht sauber, sondern behaelt intern die zuletzt bekannten + # Werte bei ("stackt"). Waehrend eines Songwechsels ist "playing" durch das kurze + # Neuladen des