Use proper setter/getter for playlist
This commit is contained in:
parent
0f4b9ce4dc
commit
22cfe7b604
@ -23,15 +23,15 @@ class BaseCurrentPlaylistController(object):
|
||||
self.version = 0
|
||||
self.playlist = Playlist()
|
||||
|
||||
def get_playlist(self):
|
||||
@property
|
||||
def playlist(self):
|
||||
return self._playlist
|
||||
|
||||
def set_playlist(self, playlist):
|
||||
@playlist.setter
|
||||
def playlist(self, playlist):
|
||||
self._playlist = playlist
|
||||
self.version += 1
|
||||
|
||||
playlist = property(get_playlist, set_playlist)
|
||||
|
||||
def add(self, uri, at_position=None):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user