Add configuration handling for mpg123 backend

pull/433/head
Åke Forslund 2016-12-10 10:12:45 +01:00
parent 7ea387988d
commit 4af620c968
1 changed files with 6 additions and 1 deletions

View File

@ -28,10 +28,15 @@ if config.get('audio.vlc', 'False') == 'True':
class Mpg123Service():
def __init__(self, config, emitter):
self.config = config
self.process = None
self.emitter = emitter
self.emitter.on('Mpg123ServicePlay', self._play)
@property
def name(self):
return self.config.get('audio.mpg123.name', 'mpg123')
def supported_uris(self):
return ['file', 'http']