File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,3 +280,28 @@ def set_position(self, value):
280280 @property
281281 def duration (self ):
282282 return self .handle_long ('netRemote.play.info.duration' )
283+
284+ # Equalizer Presets
285+ @property
286+ def eq_presets (self ):
287+ return self .handle_list ('netRemote.sys.caps.eqPresets' )
288+
289+ def get_eq_preset (self ):
290+ eq = None
291+ int_eq = self .handle_int ('netRemote.sys.audio.eqPreset' )
292+ for temp_eq in self .eq_presets :
293+ if temp_eq ['band' ] == int_eq :
294+ eq = temp_eq ['label' ]
295+
296+ return str (eq )
297+
298+ def set_eq_preset (self , value ):
299+ eq_preset = - 1
300+ for temp_eq_preset in self .eq_presets :
301+ if temp_eq_preset ['label' ] == value :
302+ eq_preset = temp_eq_preset ['band' ]
303+
304+ return self .handle_set ('netRemote.sys.audio.eqPreset' , eq_preset )
305+
306+ eq_preset = property (get_eq_preset , set_eq_preset )
307+
Original file line number Diff line number Diff line change 2828
2929
3030setup (name = 'fsapi' ,
31- version = '0.1.2 ' ,
31+ version = '0.1.3 ' ,
3232 description = 'Implementation of the Frontier Silicon API for Python' ,
3333 author = 'Krasimir Zhelev' ,
3434 author_email = 'krasimir.zhelev@gmail.com' ,
3535 keywords = 'fsapi frontier silicon' ,
3636 license = "Apache License 2.0" ,
37- download_url = 'https://github.com/sd-personal/python-fsapi/archive/0.1.2 .zip' ,
37+ download_url = 'https://github.com/sd-personal/python-fsapi/archive/0.1.3 .zip' ,
3838 url = 'https://github.com/sd-personal/python-fsapi.git' ,
3939 maintainer = 'sd-personal' ,
4040 zip_safe = True ,
You can’t perform that action at this time.
0 commit comments