try sending the first song in a group

This commit is contained in:
cwilvx
2024-07-07 16:59:10 +03:00
parent c116957982
commit e07d8db8e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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]):