mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-03-25 09:49:46 +08:00
fix: 尝试解决七牛设备问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user