Change stopped_playing event arg from stop_position to time_position
This commit is contained in:
parent
b23853b958
commit
0e8fb5e7ac
@ -496,7 +496,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):
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user