guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
713 stars 286 forks source link

player.currently_playing gives nil error if user is playing a podcast #225

Open shemca opened 3 years ago

shemca commented 3 years ago

So, if a user is currently listening to a podcast, player.is_playing will return true. While player.currently_playiing will return:

NoMethodError: undefined method `[]' for nil:NilClass

If there was a player check that could tell whether songs or podcasts are currently being played, or if currently_playing could return the podcast details, that could avoid the break.

relyks commented 3 years ago

I'm actually working on adding Podcast support to the gem. I'll let you know when I'm done

yshmarov commented 3 years ago

@relyks how's it going with podcasts? any help needed?