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 {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user