audio media_type now have their own config_spec.ini
This commit is contained in:
parent
9a6741d7bf
commit
9ff68c224e
@ -104,13 +104,6 @@ max_height = integer(default=640)
|
||||
max_width = integer(default=180)
|
||||
max_height = integer(default=180)
|
||||
|
||||
[media_type:mediagoblin.media_types.audio]
|
||||
keep_original = boolean(default=True)
|
||||
# vorbisenc quality
|
||||
quality = float(default=0.3)
|
||||
create_spectrogram = boolean(default=True)
|
||||
spectrogram_fft_size = integer(default=4096)
|
||||
|
||||
[media_type:mediagoblin.media_types.ascii]
|
||||
thumbnail_font = string(default=None)
|
||||
|
||||
|
8
mediagoblin/media_types/audio/config_spec.ini
Normal file
8
mediagoblin/media_types/audio/config_spec.ini
Normal file
@ -0,0 +1,8 @@
|
||||
[plugin_spec]
|
||||
keep_original = boolean(default=True)
|
||||
# vorbisenc quality
|
||||
quality = float(default=0.3)
|
||||
create_spectrogram = boolean(default=True)
|
||||
spectrogram_fft_size = integer(default=4096)
|
||||
|
||||
|
@ -60,7 +60,7 @@ class CommonAudioProcessor(MediaProcessor):
|
||||
the audio_config, transcoder, thumbnailer and spectrogram_tmp path
|
||||
"""
|
||||
self.audio_config = mgg \
|
||||
.global_config['media_type:mediagoblin.media_types.audio']
|
||||
.global_config['plugins']['mediagoblin.media_types.audio']
|
||||
|
||||
# Pull down and set up the processing file
|
||||
self.process_filename = get_process_filename(
|
||||
|
Loading…
x
Reference in New Issue
Block a user