rewrite remove duplicates to support removing duplicates in albums tracks efficiently

+ remove flags added to client settings page
+ misc
This commit is contained in:
mungai-njoroge
2023-08-29 20:04:30 +03:00
parent 26e36ba36f
commit 13475b0630
16 changed files with 118 additions and 95 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ class TrackStore:
Returns all tracks matching the given album hash.
"""
tracks = [t for t in cls.tracks if t.albumhash == album_hash]
return remove_duplicates(tracks)
return remove_duplicates(tracks, is_album_tracks=True)
@classmethod
def get_tracks_by_artisthash(cls, artisthash: str):