Edit PlaylistView to use the media filename as the default title

This commit is contained in:
mrkmntal 2026-10-27 13:58:04 -04:00
commit 7bfad706f1

View file

@ -165,7 +165,8 @@ class PlaylistView:
item = self.playlist[idx]
prefix = "> " if item.get("current") else " "
title = item.get("title") or item.get("filename", "Unknown").split("/")[-1]
filename = item.get("filename")
title = os.path.basename(filename) if filename else item.get("title") or "Unknown"
text = f"{prefix}{idx + 1}. {title}"
attrs = 0