fix: folder endpoint returning same track for different files of the same trackhash

+ fix: chunked streaming. return instead of yield chunks
This commit is contained in:
cwilvx
2024-08-15 17:07:34 +03:00
parent cd992419c5
commit ca31054f48
18 changed files with 508 additions and 138 deletions
+3 -3
View File
@@ -108,14 +108,14 @@ class PairDeviceQuery(BaseModel):
code: str = Field("", description="The code")
@api.post("/pair")
@api.get("/pair")
@jwt_required(optional=True)
def pair_with_code(body: PairDeviceQuery):
def pair_with_code(query: PairDeviceQuery):
"""
Get an access token by sending a pair code. NOTE: A code can only be used once!
"""
global pair_token
token = pair_token.get(body.code, None)
token = pair_token.get(query.code, None)
if token:
pair_token = {}