rerun menu if mpv is exited, rather than dumping out
This commit is contained in:
parent
0d9068ef90
commit
f3cabfa83b
@ -19,6 +19,7 @@ func RadioMenu(stations []stationRecord) *wmenu.Menu {
|
|||||||
fmt.Printf("Streaming: '" + opts[0].Text + "' at url - "+ val +"\n")
|
fmt.Printf("Streaming: '" + opts[0].Text + "' at url - "+ val +"\n")
|
||||||
stdout, _ := subExecute(player(), options(), val)
|
stdout, _ := subExecute(player(), options(), val)
|
||||||
fmt.Println(stdout)
|
fmt.Println(stdout)
|
||||||
|
menu.Run()
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
for _, station := range stations {
|
for _, station := range stations {
|
||||||
|
Loading…
Reference in New Issue
Block a user