mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
2 fixes:1. song title is empty after pause(if pause within 2-3 seconds 2. lyric default set to english
This commit is contained in:
parent
7349bad749
commit
69bfb5ee7c
@ -207,6 +207,7 @@ func (p *Player) play() {
|
||||
p.ctrl.Paused = false
|
||||
p.isRunning = true
|
||||
speaker.Unlock()
|
||||
gomu.playingBar.setSongTitle(p.currentSong.name)
|
||||
}
|
||||
|
||||
// volume up and volume down using -0.5 or +0.5
|
||||
|
@ -86,7 +86,7 @@ func (p *PlayingBar) run() error {
|
||||
// our progress bar
|
||||
if p.hasTag && p.subtitles != nil {
|
||||
for i := range p.subtitles {
|
||||
if p.subtitles[i].langExt == p.langLyric {
|
||||
if strings.Contains(p.langLyric, p.subtitles[i].langExt) {
|
||||
p.subtitle = p.subtitles[i].subtitle
|
||||
break
|
||||
}
|
||||
@ -167,8 +167,10 @@ func (p *PlayingBar) newProgress(currentSong *AudioFile, full int) {
|
||||
subtitle: &res,
|
||||
}
|
||||
p.subtitles = append(p.subtitles, subtitle)
|
||||
p.langLyric = "en"
|
||||
p.langLyric = gomu.anko.GetString("General.lang_lyric")
|
||||
if p.langLyric == "" {
|
||||
p.langLyric = "en"
|
||||
}
|
||||
}
|
||||
}
|
||||
defer tag.Close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user