From: Christian Heller Date: Thu, 19 Dec 2024 03:30:18 +0000 (+0100) Subject: Fix playing link brokenness. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/task?a=commitdiff_plain;h=6c6f97d1ff68814ea2a068c1ad8c69ac96e1f936;p=ytplom Fix playing link brokenness. --- diff --git a/src/ytplom/http.py b/src/ytplom/http.py index 6054dc9..4f07e32 100644 --- a/src/ytplom/http.py +++ b/src/ytplom/http.py @@ -397,15 +397,17 @@ class _TaskHandler(BaseHTTPRequestHandler): self.server.config.whitelist_tags_display) if last_sent < self.server.player.last_update: last_sent = self.server.player.last_update - title, tags = '', '' + title, tags, digest = '', '', '' if playing: tags = playing.tags_showable.joined title = str(playing.rel_path) + digest = playing.digest.b64 payload['last_update'] = self.server.player.last_update payload['running'] = self.server.player.is_running payload['paused'] = self.server.player.is_paused payload['idx'] = self.server.player.idx payload['title_tags'] = tags + payload['title_digest'] = digest payload['title'] = title if 'playlist' in params.as_dict: payload['playlist_files'] = [