1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-03-25 09:49:46 +08:00

fix: 尝试解决七牛设备问题

This commit is contained in:
涵曦
2024-12-15 07:58:25 +08:00
parent 24a40882df
commit 14e7a151a3
3 changed files with 61 additions and 25 deletions

View File

@@ -45,6 +45,7 @@ from xiaomusic.utils import (
remove_common_prefix,
remove_id3_tags,
try_add_access_control_param,
update_version,
)
xiaomusic = None
@@ -571,6 +572,13 @@ async def playlistdelmusic(data: PlayListMusicObj, Verifcation=Depends(verificat
return {"ret": "Del failed, may be playlist not exist."}
# 更新版本
@app.post("/updateversion")
async def updateversion(version: str = "", Verifcation=Depends(verification)):
ret = update_version(version)
return {"ret": ret}
async def file_iterator(file_path, start, end):
async with aiofiles.open(file_path, mode="rb") as file:
await file.seek(start)