mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
rewrite populate.get_image() to extract a
track thumbnail from the first track in an album that has one. + rewrite Populate.remove_modified with sets + clean the SqliteManager utility class + Rewrite ProcessTrackThumbnails to use a process pool instead of a thread pool + rewrite track store's remove_tracks_by_filepaths to utilize sets
This commit is contained in:
+2
-3
@@ -53,15 +53,14 @@ class TrackStore:
|
||||
break
|
||||
|
||||
@classmethod
|
||||
def remove_tracks_by_filepaths(cls, filepaths: list[str]):
|
||||
def remove_tracks_by_filepaths(cls, filepaths: set[str]):
|
||||
"""
|
||||
Removes multiple tracks from the store by their filepaths.
|
||||
"""
|
||||
|
||||
paths_str = "~".join(filepaths)
|
||||
|
||||
for track in cls.tracks:
|
||||
if track.filepath in paths_str:
|
||||
if track.filepath in filepaths:
|
||||
cls.tracks.remove(track)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user