mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
fix popup displays 'language lyric loaded' on song with no lyric
This commit is contained in:
parent
fc53a63e65
commit
f36ed15e31
11
start.go
11
start.go
@ -335,7 +335,16 @@ func start(application *tview.Application, args Args) {
|
||||
audioFile := audio.(*AudioFile)
|
||||
gomu.playingBar.newProgress(audioFile, int(duration.Seconds()))
|
||||
name := audio.Name()
|
||||
defaultTimedPopup(" Now Playing ", fmt.Sprintf("%s \n\n %s lyric loaded", name, gomu.playingBar.langLyricCurrentPlaying))
|
||||
var description string
|
||||
|
||||
if len(gomu.playingBar.subtitles) == 0 {
|
||||
description = name
|
||||
} else {
|
||||
lang := gomu.playingBar.langLyricCurrentPlaying
|
||||
description = fmt.Sprintf("%s \n\n %s lyric loaded", name, lang)
|
||||
}
|
||||
|
||||
defaultTimedPopup(" Now Playing ", description)
|
||||
|
||||
go func() {
|
||||
err := gomu.playingBar.run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user