Esempio n. 1
0
 def start(self, amount):
     print amount
     if self.thread == "" or not self.thread.is_alive():
         print "initing player"
         player = Player.Player(self.username, self.spotify, self.device,
                                self.playlist, int(amount))
         self.thread = player
         player.start()
         return "started player"
     else:
         print "player is already running"
         return "player is already running"