aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-07-29 16:50:29 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-07-29 16:50:51 -0500
commita1e299d60e135905e39358fe5dc1efcd64172daf (patch)
treed9e97ae30354fba293b14fc8485c07a58f116219
parent130b85f81ac297ebb769ab133c8adb1647d794a8 (diff)
downloadmediagoblin-a1e299d60e135905e39358fe5dc1efcd64172daf.tar.lz
mediagoblin-a1e299d60e135905e39358fe5dc1efcd64172daf.tar.xz
mediagoblin-a1e299d60e135905e39358fe5dc1efcd64172daf.zip
Why isn't .ogg in this list? A comment explains... it's detected by sniffing!
This commit sponsored by Tom Marble. Thanks Tom!
-rw-r--r--mediagoblin/media_types/audio/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mediagoblin/media_types/audio/__init__.py b/mediagoblin/media_types/audio/__init__.py
index 90f842ba..c7ed8d2d 100644
--- a/mediagoblin/media_types/audio/__init__.py
+++ b/mediagoblin/media_types/audio/__init__.py
@@ -19,6 +19,9 @@ from mediagoblin.media_types.audio.processing import process_audio, \
sniff_handler
from mediagoblin.tools import pluginapi
+# Why isn't .ogg in this list? It's still detected, but via sniffing,
+# .ogg files could be either video or audio... sniffing determines which.
+
ACCEPTED_EXTENSIONS = ["mp3", "flac", "wav", "m4a"]
MEDIA_TYPE = 'mediagoblin.media_types.audio'