mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 10:22:50 +08:00
fix openblive admin not able qiege
This commit is contained in:
@@ -82,5 +82,12 @@ func Initialize() {
|
||||
MainWindow.SetFixedSize(true)
|
||||
if config.General.ShowSystemTray {
|
||||
setupSysTray()
|
||||
} else {
|
||||
MainWindow.SetCloseIntercept(
|
||||
func() {
|
||||
// save twice i don;t care
|
||||
_ = config.SaveToConfigFile(config.ConfigPath)
|
||||
MainWindow.Close()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package gui
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/pkg/config"
|
||||
"AynaLivePlayer/pkg/i18n"
|
||||
"AynaLivePlayer/resource"
|
||||
"fyne.io/fyne/v2"
|
||||
@@ -17,6 +18,7 @@ func setupSysTray() {
|
||||
desk.SetSystemTrayIcon(resource.ImageIcon)
|
||||
}
|
||||
MainWindow.SetCloseIntercept(func() {
|
||||
_ = config.SaveToConfigFile(config.ConfigPath)
|
||||
MainWindow.Hide()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ func registerCmdHandler() {
|
||||
log.Infof("[MPV Player] Play media %s", mediaInfo.Title)
|
||||
mediaUrls, err := miaosic.GetMediaUrl(mediaInfo.Meta, miaosic.QualityAny)
|
||||
if err != nil || len(mediaUrls) == 0 {
|
||||
log.Warn("[MPV PlayControl] get media url failed", err)
|
||||
log.Warn("[MPV PlayControl] get media url failed ", mediaInfo.Meta.ID(), err)
|
||||
global.EventManager.CallA(
|
||||
events.PlayerPlayErrorUpdate,
|
||||
events.PlayerPlayErrorUpdateEvent{
|
||||
|
||||
Submodule pkg/liveroom-sdk updated: dc1612e5c8...b707853ba8
Submodule pkg/miaosic updated: fce7ebbdd4...6ee4bed043
@@ -74,7 +74,7 @@ func (d *Qiege) handleMessage(event *event.Event) {
|
||||
if len(msgs) < 1 || msgs[0] != d.CustomCMD {
|
||||
return
|
||||
}
|
||||
d.log.Infof("recieve diange command")
|
||||
d.log.Infof("recieve qiege command")
|
||||
if d.UserPermission {
|
||||
if d.currentUid == message.User.Uid {
|
||||
global.EventManager.CallA(
|
||||
|
||||
3
todo.txt
3
todo.txt
@@ -12,9 +12,12 @@
|
||||
- 歌词event发送全部歌词,前端处理不同版本
|
||||
- 网页输出重写,使用网页版本,不绑定在点歌机内(点歌机不需要启动网页服务)
|
||||
- optimize local music
|
||||
- 从搜索里添加的歌不能被切
|
||||
----
|
||||
|
||||
Finished
|
||||
- 2024.08.06 : 修复使用身份码连接的时候房管无法切歌的问题
|
||||
- 2024.07.25 : 或许修复配置无法正确保存的问题
|
||||
- 2024.07.20 : fyne升级,字体修改为自动加载系统字体, 设置中课设置mpv是否现实歌曲封面
|
||||
- 2024.06.23@1.0.8 : 歌词字符集自动检测解码,单个点歌数上线
|
||||
- 2024.06.22 : 支持多个点歌命令, kugou源
|
||||
|
||||
Reference in New Issue
Block a user