From ccd4f984c291d9d965164522560c2abedea1d3b0 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 10 Jul 2014 10:58:38 -0500 Subject: [PATCH] Fix bad copy/paste in skip_transcoding code (Fix by Beuc, Brett Smith) --- mediagoblin/media_types/video/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediagoblin/media_types/video/util.py b/mediagoblin/media_types/video/util.py index beb10129..29b7f410 100644 --- a/mediagoblin/media_types/video/util.py +++ b/mediagoblin/media_types/video/util.py @@ -38,11 +38,11 @@ def skip_transcode(metadata, size): if not metadata['mimetype'] in config['mime_types']: return False - if config['container_formats'] and metadata['tags'].get('audio-codec'): + if config['container_formats'] and metadata['tags'].get('container-format'): if not metadata['tags']['container-format'] in config['container_formats']: return False - if config['video_codecs'] and metadata['tags'].get('audio-codec'): + if config['video_codecs'] and metadata['tags'].get('video-codec'): if not metadata['tags']['video-codec'] in config['video_codecs']: return False -- 2.25.1