rewrite remove duplicates to retain tracks with highest bitrate

+ bump fuzzy search cutoff to 90
+ remove unicodes from fuzzy search texts
This commit is contained in:
geoffrey45 committed 2023-02-26 09:50:45 +03:00
1 parent 8e7021186d
commit c352037ccd
6 files changed
+81 -83

No files matched your search

+2 -8
View File
@@ -69,14 +69,8 @@ class Store:
Returns a list of tracks by their hashes.
"""
tracks = []
for trackhash in trackhashes:
for track in cls.tracks:
if track.trackhash == trackhash:
tracks.append(track)
return tracks
trackhashes = " ".join(trackhashes)
return [track for track in cls.tracks if track.trackhash in trackhashes]
@classmethod
def remove_track_by_filepath(cls, filepath: str):