fix: 修复播放链接报错

This commit is contained in:
涵曦 2024-07-06 03:50:47 +00:00
parent e10f5b89b6
commit 20c7e14076

View File

@ -729,7 +729,7 @@ class XiaoMusic:
async def play_url(self, **kwargs): async def play_url(self, **kwargs):
url = kwargs.get("arg1", "") url = kwargs.get("arg1", "")
await self.all_player_play(url) return await self.all_player_play(url)
async def play_one_url(self, device_id, url): async def play_one_url(self, device_id, url):
try: try:
@ -753,6 +753,7 @@ class XiaoMusic:
] ]
results = await asyncio.gather(*tasks) results = await asyncio.gather(*tasks)
self.log.info(f"all_player_play {url} {results}") self.log.info(f"all_player_play {url} {results}")
return results
def find_real_music_name(self, name): def find_real_music_name(self, name):
if not self.config.enable_fuzzy_match: if not self.config.enable_fuzzy_match: