Skip to content

Commit

Permalink
fix: undefined variable 'stamp'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Dec 31, 2018
1 parent c25ab63 commit acb8979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unsonic/views/rest/scrobble.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def handleReq(self, session):
log.info(
f"last.fm scrobbling: {track.artist} - {track.title}")
tstamp = self.params["time"]
tstamp = tstamp / 1000 if stamp else int(time.time())
tstamp = tstamp / 1000 if tstamp else int(time.time())
lastfm.scrobble(track.artist.name, track.title, tstamp,
album=track.album.title,
album_artist=track.album.artist.name,
Expand Down

0 comments on commit acb8979

Please sign in to comment.