Skip to content

Commit

Permalink
fix: 修复软连接目录不能播放的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Jul 19, 2024
1 parent 285203a commit 51ef9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xiaomusic/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def reset_http_server():

# 更新 music 链接
app.router.routes = [route for route in app.router.routes if route.path != "/music"]
app.mount("/music", StaticFiles(directory=config.music_path), name="music")
app.mount("/music", StaticFiles(directory=config.music_path,follow_symlink=True), name="music")


def HttpInit(_xiaomusic):
Expand Down

0 comments on commit 51ef9e0

Please sign in to comment.