bugfix: kill download progress don't raise error
This commit is contained in:
parent
ca07ed0dd3
commit
63eb0c22cb
@ -294,7 +294,10 @@ class XiaoMusic:
|
|||||||
# 下载歌曲
|
# 下载歌曲
|
||||||
async def download(self, name):
|
async def download(self, name):
|
||||||
if self.download_proc:
|
if self.download_proc:
|
||||||
|
try:
|
||||||
self.download_proc.kill()
|
self.download_proc.kill()
|
||||||
|
except ProcessLookupError:
|
||||||
|
pass
|
||||||
|
|
||||||
sbp_args = (
|
sbp_args = (
|
||||||
"yt-dlp", f"ytsearch:{name}",
|
"yt-dlp", f"ytsearch:{name}",
|
||||||
|
Loading…
Reference in New Issue
Block a user