Edit PlaylistView to use the media filename as the default title
This commit is contained in:
parent
4a9508b14c
commit
7bfad706f1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue