owenthereal / spotctl

A command-line interface to Spotify, written in Go
MIT License
243 stars 16 forks source link

Can't play own playlist #18

Open Bios-Marcel opened 5 years ago

Bios-Marcel commented 5 years ago

Hey,

I have a playlist that I can't play. It's called Rock and Metal and I have personally made it. The playlist is public. I have now renamed the playlist to Rock and Metal - ID0, but yet I still can't play it.

This is the output:

/mnt/d/spotctl $ ./spotctl play -t playlist "Rock and Metal - ID0"                                                                                       panic: runtime error: invalid memory address or nil pointer dereference                                                                                  [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x74e4fa]                                                                                                                                                                                                                                            goroutine 1 [running]:                                                                                                                                   main.play(0xa689c0, 0xc420075710, 0x1, 0x3, 0x0, 0x0)                                                                                                            /Users/jou/gocode/src/github.com/jingweno/spotctl/cmd/spotctl/ctl.go:123 +0x6a                                                                   github.com/jingweno/spotctl/vendor/github.com/spf13/cobra.(*Command).execute(0xa689c0, 0xc420075680, 0x3, 0x3, 0xa689c0, 0xc420075680)                           /Users/jou/gocode/src/github.com/jingweno/spotctl/vendor/github.com/spf13/cobra/command.go:746 +0x475                                            github.com/jingweno/spotctl/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xa67e80, 0x1, 0x8394fd, 0x12)                                                     /Users/jou/gocode/src/github.com/jingweno/spotctl/vendor/github.com/spf13/cobra/command.go:831 +0x30e                                            github.com/jingweno/spotctl/vendor/github.com/spf13/cobra.(*Command).Execute(0xa67e80, 0xa6c200, 0x835204)                                                       /Users/jou/gocode/src/github.com/jingweno/spotctl/vendor/github.com/spf13/cobra/command.go:784 +0x2b                                             main.main()                                                                                                                                                      /Users/jou/gocode/src/github.com/jingweno/spotctl/cmd/spotctl/main.go:75 +0x821    
jeremyblow commented 4 years ago

Try using the Spotify URI for the playlist. E.g. spotctl play "spotify:playlist:0eaMrsK4WlRLXsaYCEDfDG".

Works with private or public playlists. You can get the URI by looking at the URL for your playlist.

intika commented 4 years ago

had a similar issue, ended up writing this... https://github.com/Intika-Linux-Spotify/Spotimaster