audio media_type now have their own config_spec.ini
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 28 Aug 2013 15:12:43 +0000 (08:12 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Thu, 29 Aug 2013 15:22:16 +0000 (08:22 -0700)
mediagoblin/config_spec.ini
mediagoblin/media_types/audio/config_spec.ini [new file with mode: 0644]
mediagoblin/media_types/audio/processing.py

index eb00b07c81e5e2c0c4d1f436e16d7eb44f8b4f5b..1837a89b4e4f4425901b308a662eed94d5059d30 100644 (file)
@@ -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 (file)
index 0000000..743deaa
--- /dev/null
@@ -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)
+
+
index 6a506741e09062a31c01d2a01ca180ba8a713056..d071644851dfa9f08dc2b379f918c78ec3eecf3f 100644 (file)
@@ -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(