Skip to content

Commit

Permalink
Listen on end events before adding the track to the history
Browse files Browse the repository at this point in the history
  • Loading branch information
krak3n committed Mar 24, 2015
1 parent 1fb5ccc commit 54a584b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fm/events/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def handle_event(message):
The event data
"""

if message['event'] == 'play':
if message['event'] == 'end':
add_playlist_history(message['uri'])


Expand Down

0 comments on commit 54a584b

Please sign in to comment.