refillradio
This commit is contained in:
parent
20e0a21289
commit
2a0b47f7cd
@ -238,8 +238,16 @@ func RefillRadio(ctx *gctx.Context, client *spotify.Client) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if !status.Playing {
|
||||||
|
fmt.Println("Nothing is playing")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
to_remove := []spotify.ID{}
|
to_remove := []spotify.ID{}
|
||||||
radioPlaylist, err := GetRadioPlaylist(ctx, client)
|
radioPlaylist, err := GetRadioPlaylist(ctx, client)
|
||||||
|
if status.PlaybackContext.URI != radioPlaylist.URI {
|
||||||
|
fmt.Println("You are not playing the radio, please run gospt radio to start")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
found := false
|
found := false
|
||||||
page := 0
|
page := 0
|
||||||
for !found {
|
for !found {
|
||||||
|
Loading…
Reference in New Issue
Block a user