mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-15 16:18:14 +08:00
fix: 修复播放链接报错
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user