refillradio

This commit is contained in:
abs3nt 2023-01-10 13:16:38 -08:00
parent 20e0a21289
commit 2a0b47f7cd

View File

@ -238,8 +238,16 @@ func RefillRadio(ctx *gctx.Context, client *spotify.Client) error {
if err != nil {
return err
}
if !status.Playing {
fmt.Println("Nothing is playing")
return nil
}
to_remove := []spotify.ID{}
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
page := 0
for !found {