v0.98.0: playlist Get Info (right-click): created, songs changed, last played on any machine, the link it was imported from, and a cover any playlist can have

This commit is contained in:
2026-11-17 22:47:25 -08:00
parent f21c31940f
commit 2964158281
12 changed files with 465 additions and 5 deletions
+11
View File
@@ -868,6 +868,17 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
The sidebar art panel shows the *shown* playlist's cover while nothing
is playing (`SidebarArt.set_playlist_art`, fed by
`MainWindow._update_playlist_art`); a song's art always wins.
**Playlist Get Info** (sidebar right-click › Get Info,
`gui/playlist_info_dialog.py`, passive; `MainWindow._playlist_info`
applies rename + cover): name, kind, songs/length, `Playlist.date_created`
(set by every create_* since Round 130; older/iTunes playlists show —),
`date_modified`, last played and `source_url` (the link a URL import made
it from). Last played is **never in the playlist JSON** (a write per song
from both machines = Round 42's conflict): `storage/playlist_plays.py`
keeps `playlist_plays/<machine id>.json` per machine (owner-only writer,
≤ one write a minute per playlist), stamped when a song starts in a
`playlist:<pid>` context; the newest stamp across machines wins. Any
playlist's cover can be set/removed there (non-JPEG/PNG re-encoded PNG).
**Songs already owned** (`library_match.LibraryMatcher`, Shazam's rule
plus a ±15 s length check) are listed "already in your library" and
unticked; `link_rows()` keeps them in the list's order as the library's