Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放电台有时候会闪一下后播放下一个 #330

Open
milimilimm opened this issue Dec 24, 2024 · 3 comments
Open

播放电台有时候会闪一下后播放下一个 #330

milimilimm opened this issue Dec 24, 2024 · 3 comments

Comments

@milimilimm
Copy link

[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:798: 收到消息:播放歌曲河北音乐广播 控制面板:False did:862821389
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:894: 匹配到指令. opkey:播放歌曲 opvalue:play oparg:河北音乐广播
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:1466: play. search_key:河北音乐广播 name:河北音乐广播
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:931: 根据【河北音乐广播】找到歌曲【['河北音乐广播']】
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:1436: 随机打乱 m3u电台 ['河南新闻广播', '云南新闻广播'] ... ['重庆音乐广播', '四川文艺广播'] with len: 210
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:2023: cancel_group_next_timer {'862821389': <xiaomusic.xiaomusic.XiaoMusicDevice object at 0xffff962f66e0>}
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:2013: cancel_next_timer
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:2019: 下一曲定时器不见了
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:1590: cur_music 河北音乐广播
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:513: get_music_url web music. name:河北音乐广播, url:https://satellitepull.cnr.cn/live/wxhebyygb/playlist.m3u8
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:446: get_music_sec_url. name:河北音乐广播 url:https://satellitepull.cnr.cn/live/wxhebyygb/playlist.m3u8
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:448: 电台不会有播放时长
[2024-12-24 22:04:47] [0.3.64] [INFO] xiaomusic.py:1990: group_force_stop_xiaoai ['f798bd08-820c-4813-bcec-3230700341a1']
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1645: force_stop_xiaoai player_pause device_id:f798bd08-820c-4813-bcec-3230700341a1 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1656: {'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0, 'info': '{ "status": 0, "volume": 18, "loop_type": 1 }'}}
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1993: group_force_stop_xiaoai ['f798bd08-820c-4813-bcec-3230700341a1'] [None]
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1593: 播放 https://satellitepull.cnr.cn/live/wxhebyygb/playlist.m3u8
[22:04:48] [0.3.64] [INFO] 172.17.0.1:51062 - "GET /playingmusic?did=862821389 HTTP/1.1" 200
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1858: play_one_url continue_play device_id:f798bd08-820c-4813-bcec-3230700341a1 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} url:https://satellitepull.cnr.cn/live/wxhebyygb/playlist.m3u8 audio_id:1809521617804460774
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1847: group_player_play https://satellitepull.cnr.cn/live/wxhebyygb/playlist.m3u8 ['f798bd08-820c-4813-bcec-3230700341a1'] [{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}]
[2024-12-24 22:04:48] [0.3.64] [INFO] xiaomusic.py:1609: 【河北音乐广播】已经开始播放了
[2024-12-24 22:04:49] [0.3.64] [INFO] analytics.py:105: umami Status: 200
[2024-12-24 22:04:49] [0.3.64] [INFO] analytics.py:73: analytics run_with_cancel success
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1618: 【河北音乐广播】不会设置下一首歌的定时器
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:2013: cancel_next_timer
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:2019: 下一曲定时器不见了
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1937: -2548.3547724723817 秒后将会播放下一首歌曲
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1915: reset_timer 延长定时器. answer_length:10 pause_time:3.0
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1926: 定时器时间到了
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1505: 开始播放下一首
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1517: _play_next. name:新疆交通广播, cur_music:河北音乐广播
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:1466: play. search_key: name:新疆交通广播
[2024-12-24 22:04:49] [0.3.64] [INFO] xiaomusic.py:931: 根据【新疆交通广播】找到歌曲【['新疆交通广播']】

@hanxi
Copy link
Owner

hanxi commented Dec 24, 2024

可能是播放链接有问题?

@milimilimm
Copy link
Author

如果是顺序播放的话,喊上一曲就正常播放,说明链接没有问题
日志中显示在切换下一曲之前是因为定时器时间到了才会播放下一曲

@N04LE7
Copy link

N04LE7 commented Dec 26, 2024

群晖NAS Docker运行xiaomusic[0.3.66]也遇到了播放网络歌单时自动不定时播放下一曲的问题,其他网络歌单也存在这个问题,歌单内容配置如下:
[
{
"name":"电台",
"musics":[
{
"name":"中国之声",
"type":"radio",
"url":"https://ngcdn001.cnr.cn/live/zgzs/index.m3u8"
},
{
"name":"清晨音乐台",
"type":"radio",
"url":"https://lhttp.qtfm.cn/live/4915/64k.mp3"
}
]
}
]

日志如下:

[2024-12-26 23:21:01] [0.3.66] [INFO] xiaomusic.py:1619: 【中国之声】已经开始播放了
[2024-12-26 23:21:03] [0.3.66] [INFO] analytics.py:105: umami Status: 200
[2024-12-26 23:21:03] [0.3.66] [INFO] analytics.py:73: analytics run_with_cancel success
[2024-12-26 23:21:03] [0.3.66] [INFO] xiaomusic.py:1628: 【中国之声】不会设置下一首歌的定时器
[2024-12-26 23:24:01] [0.3.66] [INFO] httpserver.py:248: getsetting device_list: [{'deviceID': '11b517', 'serialNumber': '1*0/98347', 'name': '小米AI音箱', 'alias': '小米AI音箱', 'current': False, 'presence': 'online', 'address': ' IP地址', 'miotDID': '1022', 'hardware': 'S12A', 'romVersion': '1.76.54', 'capabilities': {'content_blacklist': 1, 'lan_tv_control': 1, 'night_mode_v2': 1, 'school_timetable': 1, 'night_mode': 1, 'user_nick_name': 1, 'player_pause_timer': 1, 'dialog_h5': 1, 'child_mode_2': 1, 'dlna': 1, 'report_times': 1, 'voice_print': 1, 'ai_instruction': 1, 'alarm_volume': 1, 'classified_alarm': 1, 'loadmore_v2': 1, 'mesh': 1, 'ai_protocol_3_0': 1, 'voice_print_multidevice': 1, 'night_mode_detail': 1, 'child_mode': 1, 'baby_schedule': 1, 'tone_setting': 1, 'earthquake': 1, 'alarm_repeat_option_v2': 1, 'xiaomi_voip': 1, 'nearby_wakeup_cloud': 1, 'family_voice': 1, 'bluetooth_option_v2': 1, 'skill_try': 0, 'yueyu': 1, 'yunduantts': 1, 'mico_current': 1, 'cp_level': 1, 'voip_used_time': 1}, 'remoteCtrlType': '', 'deviceSNProfile': '隐藏内容, 'deviceProfile': '隐藏内容', 'brokerIndex': 110, 'mac': '隐藏内容', 'ssid': ''}]
[2024-12-26 23:24:52] [0.3.66] [INFO] xiaomusic.py:1936: 定时器时间到了
[2024-12-26 23:24:52] [0.3.66] [INFO] xiaomusic.py:1515: 开始播放下一首
[2024-12-26 23:24:52] [0.3.66] [INFO] xiaomusic.py:416: try get_filename. filename:music/download/周杰伦听妈妈的话.mp3
[2024-12-26 23:24:52] [0.3.66] [INFO] xiaomusic.py:1527: _play_next. name:周杰伦听妈妈的话, cur_music:中国之声
[2024-12-26 23:24:52] [0.3.66] [INFO] xiaomusic.py:1476: play. search_key: name:周杰伦听妈妈的话
[2024-12-26 23:24:55] [0.3.66] [INFO] xiaomusic.py:940: 根据【周杰伦听妈妈的话】找到歌曲【['周杰伦听妈妈的话']】

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants