當前位置: 首頁>>代碼示例>>Python>>正文


Python manager.SpotifySessionManager類代碼示例

本文整理匯總了Python中spotify.manager.SpotifySessionManager的典型用法代碼示例。如果您正苦於以下問題:Python SpotifySessionManager類的具體用法?Python SpotifySessionManager怎麽用?Python SpotifySessionManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SpotifySessionManager類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self, service):
     self.service = service
     self.cache_location = self.service.store.dbdir.child("temp").path
     SpotifySessionManager.__init__(self, service.username, service.password)
     self.ctr = None
     self.playing = False
     log.msg("Connecting as %s" % service.username, system="squeal.spot.service.SpotifyManager")
開發者ID:htgoebel,項目名稱:squeal,代碼行數:7,代碼來源:manager.py

示例2: __init__

 def __init__(self, condition, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AlsaController()
     self.ctr = None
     self.playing = False
     self._queue = []
     self.playlist_manager = JukeboxPlaylistManager()
     self.container_manager = JukeboxContainerManager(condition)
開發者ID:jbarciauskas,項目名稱:pyspotify-web,代碼行數:8,代碼來源:jukebox.py

示例3: __init__

 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AlsaController()
     self.ui = JukeboxUI(self)
     self.ctr = None
     self.playing = False
     self._queue = []
     print "Logging in, please wait..."
開發者ID:aabilio,項目名稱:pyspotify,代碼行數:8,代碼來源:jukebox.py

示例4: __init__

    def __init__(self, *args, **kwargs):
        threading.Thread.__init__(self)
        SpotifySessionManager.__init__(self, *args, **kwargs)

        self.audio = AlsaController()
        self.playing = False
        self.loaded_tracks = []
        self.start()
開發者ID:knutin,項目名稱:spotify_quiz,代碼行數:8,代碼來源:spotifysession.py

示例5: __init__

 def __init__(self, list, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AlsaController()
     self.ctr = None
     self.playing = False
     self._queue = []
     self.to_random = list
     print "Logging in, please wait..."
開發者ID:cdsboy,項目名稱:tests,代碼行數:8,代碼來源:randomize.py

示例6: __init__

	def __init__(self,username, *a, **kw):
		SpotifySessionManager.__init__(self, username,*a, **kw)
		self.audio = AudioSink(backend=self)
		self.playing = False
		self._queue = []
		self.currentIndex = 0
		self.track_playing = None
		self.manager = QueueManager(self,username)
		self.loading = False			
開發者ID:ryleyherrington,項目名稱:DJPi,代碼行數:9,代碼來源:djpi.py

示例7: __init__

 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AlsaController()
     self.ui = HTTPRequests(self)
     self.ctr = None
     self.playing = False
     self.username = a[0]
     self._queue = []
     print "Trying to log in as " + a[0] + ", please wait..."
開發者ID:BigNetwork,項目名稱:spotify-daemon,代碼行數:9,代碼來源:sessionmanager.py

示例8: __init__

 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AudioSink(backend=self)
     self.ctr = None
     self.playing = False
     self._queue = []
     self.playlist_manager = JukeboxPlaylistManager()
     self.container_manager = JukeboxContainerManager()
     self.track_playing = None
     print "Logging in, please wait..."
開發者ID:lovek323,項目名稱:spotify-ripper,代碼行數:10,代碼來源:jukebox.py

示例9: __init__

 def __init__(self, track_uri, username=None, password=None, remember_me=False,
              login_blob='', proxy=None, proxy_username=None,
              proxy_password=None):
     SpotifySessionManager.__init__(self, username=username, password=password,
                                    remember_me=remember_me, login_blob=login_blob,
                                    proxy=proxy, proxy_username=proxy_username,
                                    proxy_password=proxy_password)
     self.track_uri = track_uri
     self.ctr = None
     # self.container_manager = JukeboxContainerManager()
     print "Logging in, please wait..."
開發者ID:DriesVandenneucker,項目名稱:starrify,代碼行數:11,代碼來源:starrify.py

示例10: __init__

 def __init__(self, *a, **kw):
     #
     # Prevent the Spotify Session Manager from trying to read the appkey from file 
     self.appkey_file = None
     self.application_key = kw['application_key']
     
     #
     # Parent constructor
     SpotifySessionManager.__init__(self, *a, **kw)
     
     #
     # Standard set up
     self.audio = AudioSink(backend=self)
     # MJW self.ui = JukeboxUI(self)
     self.ctr = None
     self.playing = False
     self._queue = []
     self.playlist_manager = JukeboxPlaylistManager()
     self.container_manager = JukeboxContainerManager()
     self.track_playing = None
     print "Logging in, please wait..."
開發者ID:mattjw,項目名稱:Symfopi,代碼行數:21,代碼來源:playback.py

示例11: __init__

 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AlsaController()
開發者ID:bfirsh,項目名稱:pyspotify,代碼行數:3,代碼來源:example1.py

示例12: __init__

 def __init__(self):
     SpotifySessionManager.__init__(self, "username_good", "password_good")
開發者ID:ZenithDK,項目名稱:pyspotify,代碼行數:2,代碼來源:test_session.py

示例13: __init__

 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.playlist = None
     self.track = None
     self.results = False
開發者ID:sbondada,項目名稱:Spoddit,代碼行數:5,代碼來源:spoddit.py

示例14: __init__

 def __init__(self, usr, pwd, all_loaded):
     SpotifySessionManager.__init__(self, usr, pwd)
     threading.Thread.__init__(self)
     self.ctr = None
     self.playlist_manager = YoukboxPlaylistManager()
     self.container_manager = YoukboxContainerManager(all_loaded)
開發者ID:tak30,項目名稱:youkbox,代碼行數:6,代碼來源:clientSpotify.py

示例15: __init__

 def __init__(self):
     SpotifySessionManager.__init__(self, "username_good", "password_good")
     self.awoken = threading.Event() # used to block until awoken
開發者ID:Dvad,項目名稱:pyspotify,代碼行數:3,代碼來源:test_session.py


注:本文中的spotify.manager.SpotifySessionManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。