mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
fix: folder endpoint returning same track for different files of the same trackhash
+ fix: chunked streaming. return instead of yield chunks
This commit is contained in:
+7
-3
@@ -39,10 +39,14 @@ class FolderStore:
|
||||
trackhash = cls.map.get(filepath)
|
||||
|
||||
if trackhash:
|
||||
track = TrackStore.trackhashmap.get(trackhash)
|
||||
trackgroup = TrackStore.trackhashmap.get(trackhash)
|
||||
|
||||
if track:
|
||||
yield track.tracks[0]
|
||||
if trackgroup is None:
|
||||
continue
|
||||
|
||||
for track in trackgroup.tracks:
|
||||
if track.filepath == filepath:
|
||||
yield track
|
||||
|
||||
@classmethod
|
||||
def count_tracks_containing_paths(cls, paths: list[str]):
|
||||
|
||||
Reference in New Issue
Block a user