home · contact · privacy
Fix playing link brokenness.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 19 Dec 2024 03:30:18 +0000 (04:30 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 19 Dec 2024 03:30:18 +0000 (04:30 +0100)
src/ytplom/http.py

index 6054dc91b296312e1ec49e2feeeb9ef23e7150d9..4f07e3235937ebc2cc973320c10a0b2247fd6020 100644 (file)
@@ -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'] = [