1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-15 16:18:14 +08:00

feat: 新增调试工具用来调试 player_play_music 接口

This commit is contained in:
涵曦
2024-07-01 11:08:54 +00:00
parent d088374333
commit 3b1684f553
4 changed files with 64 additions and 0 deletions

View File

@@ -1011,3 +1011,15 @@ class XiaoMusic:
self.new_record_event.set()
result = await future
return result
async def debug_play_by_music_url(self, arg1=None):
if arg1 is None:
arg1 = {}
data = arg1
self.log.info(f"debug_play_by_music_url: {data}")
return await self.mina_service.ubus_request(
self.device_id,
"player_play_music",
"mediaplayer",
data,
)