mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add route to save folder as playlist
+ modify playlist table sql
This commit is contained in:
@@ -166,3 +166,10 @@ class TrackStore:
|
||||
"""
|
||||
tracks = [t for t in cls.tracks if artisthash in t.artist_hashes]
|
||||
return remove_duplicates(tracks)
|
||||
|
||||
@classmethod
|
||||
def get_tracks_in_path(cls, path: str):
|
||||
"""
|
||||
Returns all tracks in the given path.
|
||||
"""
|
||||
return (t for t in cls.tracks if t.folder.startswith(path))
|
||||
|
||||
Reference in New Issue
Block a user