1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-03-15 08:13:16 +08:00

fix: 修复报错 close #696

This commit is contained in:
涵曦
2026-01-16 21:05:10 +08:00
parent af2da4d9ba
commit 49072a9f1d

View File

@@ -1103,7 +1103,7 @@ class MusicLibrary:
self.log.info(f"_get_file_url filepath:{filepath}, filename:{filename}")
# 构造URL
encoded_name = urlparse.quote(filename)
encoded_name = urllib.parse.quote(filename)
url = f"{self.config.hostname}:{self.config.public_port}/music/{encoded_name}"
return try_add_access_control_param(self.config, url)