The playlist name is not available when playlist_added is called
This commit is contained in:
parent
82ba04408c
commit
3c68c8f9ea
@ -18,12 +18,13 @@ class SpotifyContainerManager(PyspotifyContainerManager):
|
||||
playlist_container = self.session_manager.session.playlist_container()
|
||||
for playlist in playlist_container:
|
||||
self.session_manager.playlist_manager.watch(playlist)
|
||||
logger.debug(u'Watching %d playlist(s) for changes', len(playlist_container))
|
||||
logger.debug(u'Watching %d playlist(s) for changes',
|
||||
len(playlist_container))
|
||||
|
||||
def playlist_added(self, container, playlist, position, userdata):
|
||||
"""Callback used by pyspotify"""
|
||||
logger.debug(u'Callback called: playlist "%s" added at position %d',
|
||||
playlist.name(), position)
|
||||
logger.debug(u'Callback called: playlist added at position %d',
|
||||
position)
|
||||
# container_loaded() is called after this callback, so we do not need
|
||||
# to handle this callback.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user