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
|
- Clean up tempfiles after transcoding
|
||||||
- Double sort artist tracks for consistency (alphabetically then by other field. eg. playcount)
|
- 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
|
# Bug fixes
|
||||||
|
|
||||||
- Duplicates on search
|
- Duplicates on search
|
||||||
|
|||||||
+2
-1
@@ -43,7 +43,7 @@ class SendTrackFileQuery(BaseModel):
|
|||||||
)
|
)
|
||||||
quality: Literal["original", "1411", "800", "600", "320", "256", "128", "96"] = (
|
quality: Literal["original", "1411", "800", "600", "320", "256", "128", "96"] = (
|
||||||
Field(
|
Field(
|
||||||
"320",
|
"original",
|
||||||
description="The quality of the audio file. Options: original, 1411, 1024, 512, 320, 256, 128, 96",
|
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",
|
"Content-Range",
|
||||||
f"bytes {start}-{position}/{os.path.getsize(filepath) + bytes_to_add}",
|
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")
|
response.headers.add("Accept-Ranges", "bytes")
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user