From 9ff68c224e4254aea29f95c2e5a92290c52064d8 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 28 Aug 2013 08:12:43 -0700 Subject: [PATCH] audio media_type now have their own config_spec.ini --- mediagoblin/config_spec.ini | 7 ------- mediagoblin/media_types/audio/config_spec.ini | 8 ++++++++ mediagoblin/media_types/audio/processing.py | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 mediagoblin/media_types/audio/config_spec.ini diff --git a/mediagoblin/config_spec.ini b/mediagoblin/config_spec.ini index eb00b07c..1837a89b 100644 --- a/mediagoblin/config_spec.ini +++ b/mediagoblin/config_spec.ini @@ -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) diff --git a/mediagoblin/media_types/audio/config_spec.ini b/mediagoblin/media_types/audio/config_spec.ini new file mode 100644 index 00000000..743deaa4 --- /dev/null +++ b/mediagoblin/media_types/audio/config_spec.ini @@ -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) + + diff --git a/mediagoblin/media_types/audio/processing.py b/mediagoblin/media_types/audio/processing.py index 6a506741..d0716448 100644 --- a/mediagoblin/media_types/audio/processing.py +++ b/mediagoblin/media_types/audio/processing.py @@ -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( -- 2.25.1