mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
try sending the first song in a group
This commit is contained in:
@@ -8,7 +8,7 @@ from app.settings import SUPPORTED_FILES
|
||||
from app.store.folder import FolderStore
|
||||
from app.utils.wintools import win_replace_slash
|
||||
|
||||
from app.db.libdata import TrackTable as TrackDB
|
||||
# from app.db.libdata import TrackTable as TrackDB
|
||||
|
||||
|
||||
def create_folder(path: str, trackcount=0, foldercount=0) -> Folder:
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ class FolderStore:
|
||||
track = TrackStore.trackhashmap.get(trackhash)
|
||||
|
||||
if track:
|
||||
yield [t for t in track.tracks if t.filepath == filepath][0]
|
||||
yield track.tracks[0]
|
||||
|
||||
@classmethod
|
||||
def count_tracks_containing_paths(cls, paths: list[str]):
|
||||
|
||||
Reference in New Issue
Block a user