예제 #1
0
    def __init__(self, config, audio, backend_ref):

        self.cache_location = config['spotify']['cache_dir']
        self.settings_location = config['spotify']['cache_dir']

        PyspotifySessionManager.__init__(
            self,
            config['spotify']['username'],
            config['spotify']['password'],
            proxy=config['proxy']['hostname'],
            proxy_username=config['proxy']['username'],
            proxy_password=config['proxy']['password'])

        process.BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.audio = audio
        self.backend = None
        self.backend_ref = backend_ref

        self.bitrate = config['spotify']['bitrate']

        self.connected = threading.Event()
        self.push_audio_data = True
        self.buffer_timestamp = 0

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #2
0
    def __init__(self, config, audio, backend_ref):

        self.cache_location = config["spotify"]["cache_dir"]
        self.settings_location = config["spotify"]["cache_dir"]

        PyspotifySessionManager.__init__(
            self,
            config["spotify"]["username"],
            config["spotify"]["password"],
            proxy=config["proxy"]["hostname"],
            proxy_username=config["proxy"]["username"],
            proxy_password=config["proxy"]["password"],
        )

        process.BaseThread.__init__(self)
        self.name = "SpotifyThread"

        self.audio = audio
        self.backend = None
        self.backend_ref = backend_ref

        self.bitrate = config["spotify"]["bitrate"]

        self.connected = threading.Event()
        self.push_audio_data = True
        self.buffer_timestamp = 0

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #3
0
파일: manager.py 프로젝트: htgoebel/squeal
 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")
예제 #4
0
 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..."
예제 #5
0
 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)
예제 #6
0
 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..."
예제 #7
0
    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()
예제 #8
0
파일: randomize.py 프로젝트: cdsboy/tests
 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..."
예제 #9
0
	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			
예제 #10
0
 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..."
예제 #11
0
 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..."
예제 #12
0
 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..."
예제 #13
0
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AudioSink(backend=self)
     self.ui = my_ui(self)  #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..."
예제 #14
0
파일: jukebox.py 프로젝트: WoLpH/Jukify
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.db = Database()
     self.audio = AudioController()
     self.ui = JukeboxWebUI(self)
     self.ctr = None
     self.playing = False
     self._queue = []
     self.playlist_manager = JukeboxPlaylistManager()
     self.container_manager = JukeboxContainerManager()
     self.playlist = None
     self.track = None
예제 #15
0
    def __init__(self, username, password):
        PyspotifySessionManager.__init__(self, username, password)
        BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.gstreamer = None
        self.backend = None

        self.connected = threading.Event()
        self.session = None

        self.container_manager = None
        self.playlist_manager = None
예제 #16
0
    def __init__(self, username, password):
        PyspotifySessionManager.__init__(self, username, password)
        BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.gstreamer = None
        self.backend = None

        self.connected = threading.Event()
        self.session = None

        self.container_manager = None
        self.playlist_manager = None
예제 #17
0
    def __init__(self, username, password):
        PyspotifySessionManager.__init__(self, username, password)
        BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.audio = None
        self.backend = None

        self.connected = threading.Event()
        self.session = None

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #18
0
    def __init__(self, username, password):
        PyspotifySessionManager.__init__(self, username, password)
        BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.audio = None
        self.backend = None

        self.connected = threading.Event()
        self.session = None

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #19
0
    def __init__(self, username, password, audio, backend_ref, proxy=None,
                 proxy_username=None, proxy_password=None):
        PyspotifySessionManager.__init__(
            self, username, password, proxy=proxy,
            proxy_username=proxy_username,
            proxy_password=proxy_password)
        process.BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.audio = audio
        self.backend = None
        self.backend_ref = backend_ref

        self.connected = threading.Event()

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #20
0
    def __init__(self, username, password, audio, backend_ref, proxy=None,
                 proxy_username=None, proxy_password=None):
        PyspotifySessionManager.__init__(
            self, username, password, proxy=proxy,
            proxy_username=proxy_username,
            proxy_password=proxy_password)
        process.BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.audio = audio
        self.backend = None
        self.backend_ref = backend_ref

        self.connected = threading.Event()
        self.session = None

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #21
0
파일: playback.py 프로젝트: mattjw/Symfopi
 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..."
예제 #22
0
    def __init__(self, config, audio, backend_ref):

        self.cache_location = config['spotify']['cache_dir']
        self.settings_location = config['spotify']['settings_dir']

        self.logins = SpotifyLoginManager(config['spotify'])
        username, password = self.logins.get_login()

        full_proxy = ''
        if config['proxy']['hostname']:
            full_proxy = config['proxy']['hostname']
            if config['proxy']['port']:
                full_proxy += ':' + str(config['proxy']['port'])
            if config['proxy']['scheme']:
                full_proxy = config['proxy']['scheme'] + "://" + full_proxy

        PyspotifySessionManager.__init__(
            self, username, password,
            proxy=full_proxy,
            proxy_username=config['proxy']['username'],
            proxy_password=config['proxy']['password'])

        process.BaseThread.__init__(self)
        self.name = 'SpotifyThread'

        self.audio = audio
        self.backend = None
        self.backend_ref = backend_ref

        self.bitrate = config['spotify']['bitrate']

        self.connected = threading.Event()
        self.push_audio_data = True
        self.buffer_timestamp = 0

        self.container_manager = None
        self.playlist_manager = None

        self._initial_data_receive_completed = False
예제 #23
0
 def __init__(self):
     SpotifySessionManager.__init__(self, "username_good", "password_good")
     self.awoken = threading.Event()  # used to block until awoken
예제 #24
0
 def __init__(self, keys, *a, **kw):
     self.application_key = keys
     SpotifySessionManager.__init__(self, *a, **kw)
예제 #25
0
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.ui = SpoTubeUI(self)
     self.ctr = None
     self.container_manager = SpoTubeContainerManager()
     print("[Spotify] Logging in, please wait...")
예제 #26
0
 def __init__(self):
     SpotifySessionManager.__init__(self, "username_good", "password_good")
예제 #27
0
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.audio = AlsaController()
예제 #28
0
파일: manager.py 프로젝트: bne/squeal
 def __init__(self, service):
     self.service = service
     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")
예제 #29
0
 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)
예제 #30
0
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.playlist = None
     self.track = None
     self.results = False
예제 #31
0
 def __init__(self):
     SpotifySessionManager.__init__(self, "username_good", "password_good")
     self.awoken = threading.Event() # used to block until awoken
예제 #32
0
파일: spotube.py 프로젝트: currogtl/Spotube
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.ui = SpoTubeUI(self)
     self.ctr = None
     self.container_manager = SpoTubeContainerManager()
     print ("[Spotify] Logging in, please wait...")
 def __init__(self, username=None, password=None):
     SpotifySessionManager.__init__(self, username, password)
예제 #34
0
 def __init__(self, username, password, backend):
     SpotifySessionManager.__init__(self, username, password)
     threading.Thread.__init__(self)
     self.backend = backend
     self.audio = AlsaController()
예제 #35
0
 def __init__(self, keys, *a, **kw):
   self.application_key = keys 
   SpotifySessionManager.__init__(self, *a, **kw)
예제 #36
0
파일: hypify.py 프로젝트: adrind/hypify
 def __init__(self, *a, **kw):
     SpotifySessionManager.__init__(self, *a, **kw)
     self.pcntr = None
     self.pname = 'testing2'
     self.current_p = None