mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 08:14:43 +00:00
add route to save folder as playlist
+ modify playlist table sql
This commit is contained in:
1 parent
d4a1a6ee1a
commit
a0c51d5f82
6 files changed
+124
-44
No files matched your search
@@ -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