mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-15 16:18:14 +08:00
bugfix: kill download progress don't raise error
This commit is contained in:
@@ -294,7 +294,10 @@ class XiaoMusic:
|
||||
# 下载歌曲
|
||||
async def download(self, name):
|
||||
if self.download_proc:
|
||||
self.download_proc.kill()
|
||||
try:
|
||||
self.download_proc.kill()
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
|
||||
sbp_args = (
|
||||
"yt-dlp", f"ytsearch:{name}",
|
||||
|
||||
Reference in New Issue
Block a user