forked from trav/lintunes
v0.28.0: Cassette share selector — choose what friends can cassette
- Sync Settings gets a share selector on each friend page (and on General when "Share the same selection with all friends" is on; each friend's own selection is kept, greyed, and comes back when it's turned off). - Library: a genre/artist/album column browser with a checkbox beside every artist, album and track, search, Select All / Select None and "Share whole library". Playlists: a checklist with "Share all playlists". Nothing is shared by default. - Checking an artist or album is a snapshot of its tracks; the whole library and shared playlists are live. A shared playlist's tracks are checked and locked, with a tooltip naming the playlist(s). - cassette/share.py writes the trimmed copy (library.json, playlists.json) into each friend's folder: tags yes, listening history and local paths no. Written on OK and after library edits (debounced), and only when the bytes would change.
This commit is contained in:
@@ -44,6 +44,7 @@ class LibraryManager(QObject):
|
||||
file_move_failed = pyqtSignal(str, str) # track name, error text
|
||||
tracks_removed = pyqtSignal(list) # track ids gone from the library
|
||||
tracks_restored = pyqtSignal(list) # track ids back after an undo
|
||||
tracks_added = pyqtSignal(list) # track ids new to the library
|
||||
music_folder_changed = pyqtSignal(str) # new media folder ('' if none)
|
||||
|
||||
def __init__(self, library: Library, data_dir: Path, parent=None):
|
||||
@@ -391,6 +392,7 @@ class LibraryManager(QObject):
|
||||
self._dirty_metadata = True
|
||||
self._schedule_save()
|
||||
self._touch_smart(None)
|
||||
self.tracks_added.emit([track.track_id])
|
||||
return track.track_id
|
||||
|
||||
def delete_tracks(self, track_ids: list[int],
|
||||
|
||||
Reference in New Issue
Block a user