end of track to call play on the next track

This commit is contained in:
Johannes Knutsen 2010-08-14 18:00:18 +02:00
parent ba48920018
commit 200cc3dd2a

View File

@ -287,9 +287,11 @@ class BasePlaybackController(object):
Typically called by :class:`mopidy.process.CoreProcess` after a message
from a library thread is received.
"""
if self.cp_track_at_eot is not None:
next_cp_track = self.cp_track_at_eot
if next_cp_track is not None and self._next(next_cp_track[1]):
original_cp_track = self.current_cp_track
self.current_cp_track = self.cp_track_at_eot
self.current_cp_track = next_cp_track
self.state = self.PLAYING
if self.consume:
self.backend.current_playlist.remove(cpid=original_cp_track[0])