add silence removal using pydub and multithreading

+ fix favorites endpoint returning items less than limit
+ add endpoint to remove get silence padding
+ add 'the ulitimate' and 'compilation' to compilation album filters
+ misc
This commit is contained in:
mungai-njoroge
2024-01-05 01:08:07 +03:00
parent 6d6c86cb93
commit 258897b649
28 changed files with 4949 additions and 24 deletions
+3 -1
View File
@@ -118,7 +118,7 @@ class Album:
"""
Checks if the album is a compilation.
"""
artists = [a.name for a in self.albumartists] # type: ignore
artists = [a.name for a in self.albumartists]
artists = "".join(artists).lower()
if "various artists" in artists:
@@ -136,6 +136,8 @@ class Album:
"great hits",
"biggest hits",
"the hits",
"the ultimate",
"compilation"
}
for substring in substrings: