mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
create a base class for all migration
+ save folder to playlist, sorting by last_mod
This commit is contained in:
@@ -348,6 +348,9 @@ def save_folder_as_folder():
|
||||
return {"error": "Playlist already exists"}, 409
|
||||
|
||||
tracks = TrackStore.get_tracks_in_path(path)
|
||||
|
||||
# sort tracks by last_mod
|
||||
tracks = sorted(tracks, key=lambda t: t.last_mod)
|
||||
trackhashes = [t.trackhash for t in tracks]
|
||||
|
||||
if len(trackhashes) == 0:
|
||||
|
||||
Reference in New Issue
Block a user