Change stopped_playing event arg from stop_position to time_position

This commit is contained in:
Stein Magnus Jodal 2011-06-29 17:30:26 +03:00
parent b99a975a81
commit 5c325b03a1
3 changed files with 5 additions and 5 deletions

View File

@ -472,7 +472,7 @@ class PlaybackController(object):
return
for listener_ref in ActorRegistry.get_by_class(BackendListener):
listener_ref.proxy().stopped_playing(
track=self.current_track, stop_position=self.time_position)
track=self.current_track, time_position=self.time_position)
class BasePlaybackProvider(object):

View File

@ -20,7 +20,7 @@ class BackendListener(object):
"""
pass
def stopped_playing(self, track, stop_position):
def stopped_playing(self, track, time_position):
"""
Called whenever playback is stopped.
@ -28,7 +28,7 @@ class BackendListener(object):
:param track: the track that was played before playback stopped
:type track: :class:`mopidy.models.Track`
:param stop_position: the time position when stopped in milliseconds
:type stop_position: int
:param time_position: the time position in milliseconds
:type time_position: int
"""
pass

View File

@ -41,5 +41,5 @@ class DummyBackendListener(ThreadingActor, BackendListener):
def started_playing(self, track):
self.events['started_playing'].set()
def stopped_playing(self, track, stop_position):
def stopped_playing(self, track, time_position):
self.events['stopped_playing'].set()