def __init__(self, username, password, *args, **kwargs): threading.Thread.__init__(self, *args, **kwargs) Loggable.__init__(self, *args, **kwargs) self.username = username self.password = password self.finished = False self.awoken = threading.Event() self.gst_push_data = threading.Event() self.playlists = [] self.song_queue = [] self.session = None self.connected = False self.login_failed = False self.playing = False self.login_dfr = defer.Deferred() self.logout_dfr = defer.Deferred()
def __init__(self, *args, **kwargs): Loggable.__init__(self, *args, **kwargs) super(SpotifyResourceProvider, self).__init__(*args, **kwargs) self.debug("spotify resource privoder is now initialized")