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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user