diff --git a/src/freeseer/frontend/controller/configuration.py b/src/freeseer/frontend/controller/configuration.py index 15335bcd..87a53d14 100644 --- a/src/freeseer/frontend/controller/configuration.py +++ b/src/freeseer/frontend/controller/configuration.py @@ -33,12 +33,12 @@ configuration = Blueprint('configuration', __name__) plugins_map = { - "audioinput": "AudioInput", - "audiomixer": "AudioMixer", - "videoinput": "VideoInput", - "videomixer": "VideoMixer", - "importer": "Importer", - "output": "Output" + 'audioinput': 'AudioInput', + 'audiomixer': 'AudioMixer', + 'videoinput': 'VideoInput', + 'videomixer': 'VideoMixer', + 'importer': 'Importer', + 'output': 'Output', } @@ -72,7 +72,7 @@ def get_general_configuration(): """ log.debug('GET /configuration/general') return {'default_language': configuration.config.default_language, - 'auto_hide': configuration.config.auto_hide} + 'auto_hide': configuration.config.auto_hide, } @configuration.route('/configuration/general', methods=['PUT']) @@ -96,7 +96,7 @@ def get_recording_configuration(): 'audio_input': configuration.config.enable_audio_recording, 'audiomixer': configuration.config.audiomixer, 'video_input': configuration.config.enable_video_recording, - 'videomixer': configuration.config.videomixer} + 'videomixer': configuration.config.videomixer, } @configuration.route('/configuration/recording', methods=['PUT']) @@ -117,7 +117,7 @@ def get_plugins(plugins): plugins_type = plugins_map[plugins] names = [plugin.name for plugin in configuration.plugin_manager.get_plugins_of_category(plugins_type)] log.debug('GET /configuration/recording/{0}', plugins) - return {'plugins': names} + return {'plugins': names, } @configuration.route('/configuration/recording/', methods=['PUT'])