rerun menu if mpv is exited, rather than dumping out

This commit is contained in:
Greg Gauthier 2021-03-16 23:19:03 +00:00
parent 0d9068ef90
commit f3cabfa83b

View File

@ -19,6 +19,7 @@ func RadioMenu(stations []stationRecord) *wmenu.Menu {
fmt.Printf("Streaming: '" + opts[0].Text + "' at url - "+ val +"\n")
stdout, _ := subExecute(player(), options(), val)
fmt.Println(stdout)
menu.Run()
return nil
})
for _, station := range stations {