Merge pull request #1 from bowlercaptain/master
uses last-played song instead of "now playing" song
This commit is contained in:
commit
e3abd7e5f3
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class NowplayingBot(PineappleBot):
|
|||
@interval(30)
|
||||
def post_np(self):
|
||||
# grab the track from the last.fm api
|
||||
currently_playing = self.lastfm.get_user(self.config.lastfm_username).get_now_playing()
|
||||
currently_playing = self.lastfm.get_user(self.config.lastfm_username).get_recent_tracks(1)[0][0]
|
||||
|
||||
# don't try to post if nothing is being played
|
||||
if currently_playing is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue