33
33
configuration = Blueprint ('configuration' , __name__ )
34
34
35
35
plugins_map = {
36
- " audioinput" : " AudioInput" ,
37
- " audiomixer" : " AudioMixer" ,
38
- " videoinput" : " VideoInput" ,
39
- " videomixer" : " VideoMixer" ,
40
- " importer" : " Importer" ,
41
- " output" : " Output"
36
+ ' audioinput' : ' AudioInput' ,
37
+ ' audiomixer' : ' AudioMixer' ,
38
+ ' videoinput' : ' VideoInput' ,
39
+ ' videomixer' : ' VideoMixer' ,
40
+ ' importer' : ' Importer' ,
41
+ ' output' : ' Output' ,
42
42
}
43
43
44
44
@@ -72,7 +72,7 @@ def get_general_configuration():
72
72
"""
73
73
log .debug ('GET /configuration/general' )
74
74
return {'default_language' : configuration .config .default_language ,
75
- 'auto_hide' : configuration .config .auto_hide }
75
+ 'auto_hide' : configuration .config .auto_hide , }
76
76
77
77
78
78
@configuration .route ('/configuration/general' , methods = ['PUT' ])
@@ -96,7 +96,7 @@ def get_recording_configuration():
96
96
'audio_input' : configuration .config .enable_audio_recording ,
97
97
'audiomixer' : configuration .config .audiomixer ,
98
98
'video_input' : configuration .config .enable_video_recording ,
99
- 'videomixer' : configuration .config .videomixer }
99
+ 'videomixer' : configuration .config .videomixer , }
100
100
101
101
102
102
@configuration .route ('/configuration/recording' , methods = ['PUT' ])
@@ -117,7 +117,7 @@ def get_plugins(plugins):
117
117
plugins_type = plugins_map [plugins ]
118
118
names = [plugin .name for plugin in configuration .plugin_manager .get_plugins_of_category (plugins_type )]
119
119
log .debug ('GET /configuration/recording/{0}' , plugins )
120
- return {'plugins' : names }
120
+ return {'plugins' : names , }
121
121
122
122
123
123
@configuration .route ('/configuration/recording/<string:plugins>' , methods = ['PUT' ])
0 commit comments