mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
reset the streaming endpoint quality
This commit is contained in:
@@ -46,6 +46,9 @@
|
||||
- Clean up tempfiles after transcoding
|
||||
- Double sort artist tracks for consistency (alphabetically then by other field. eg. playcount)
|
||||
|
||||
|
||||
- ON THE HOME PAGE, STORE THE ITEMS, THEN HYDRATE ON REFRESH INSTEAD OF CLEANING THEN RELOADING THE DATA AGAIN
|
||||
|
||||
# Bug fixes
|
||||
|
||||
- Duplicates on search
|
||||
|
||||
+2
-1
@@ -43,7 +43,7 @@ class SendTrackFileQuery(BaseModel):
|
||||
)
|
||||
quality: Literal["original", "1411", "800", "600", "320", "256", "128", "96"] = (
|
||||
Field(
|
||||
"320",
|
||||
"original",
|
||||
description="The quality of the audio file. Options: original, 1411, 1024, 512, 320, 256, 128, 96",
|
||||
)
|
||||
)
|
||||
@@ -290,6 +290,7 @@ def send_file_as_chunks(filepath: str) -> Response:
|
||||
"Content-Range",
|
||||
f"bytes {start}-{position}/{os.path.getsize(filepath) + bytes_to_add}",
|
||||
)
|
||||
response.headers.add("Access-Control-Expose-Headers", "Content-Range")
|
||||
response.headers.add("Accept-Ranges", "bytes")
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user