fix(server): announce track title not album in messages; cover error paths

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 20:07:09 -07:00
parent f4ffd23ed8
commit 257ed5e0a5
2 changed files with 19 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
"""Glue between a chosen Hit and a side-effecting download. Mirrors musicfetch's
main() dispatch but returns a structured result dict and speakable messages."""
import os
from typing import Optional
from . import mf
@@ -11,7 +10,7 @@ def _source_label(hit) -> str:
def _title(hit) -> str:
return hit.album or hit.title or hit.artist
return hit.album if hit.kind == "album" else (hit.title or hit.album or hit.artist)
def started_message(hit) -> str: