Exemple #1
0
 def set_rate(self, rate):
     """
         Set rate
         @param rate as int between -1 and 5
     """
     if self.id == Type.RADIOS:
         radios = Radios()
         radios.set_rate(self._album_artists[0], rate)
     else:
         self.db.set_rate(self.id, rate)
 def set_rate(self, rate):
     """
         Set rate
         @param rate as int between -1 and 5
     """
     if self.id == Type.RADIOS:
         radios = Radios()
         radios.set_rate(self._radio_id, rate)
     else:
         self.db.set_rate(self.id, rate)
         App().player.emit("rate-changed", (self.id, rate))