diff --git a/TODO.md b/TODO.md index 0b2c782e..cd34050f 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/app/api/stream.py b/app/api/stream.py index a49a1ef8..922b3635 100644 --- a/app/api/stream.py +++ b/app/api/stream.py @@ -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