diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-01 21:59:26 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-01 22:25:41 +0100 |
commit | 5ff575827b5f53a6a5e8126cbcc5a66fde005786 (patch) | |
tree | 7a968da26d92b3f85abddfc008fa6d4a6d6105e5 /mediagoblin/media_types | |
parent | 94df840b3bf100a3fdd33e2fef2d4201d4a4ac45 (diff) | |
download | mediagoblin-5ff575827b5f53a6a5e8126cbcc5a66fde005786.tar.lz mediagoblin-5ff575827b5f53a6a5e8126cbcc5a66fde005786.tar.xz mediagoblin-5ff575827b5f53a6a5e8126cbcc5a66fde005786.zip |
Video media_data: Change layout in the mongo world
Change the media_data for video from
entry.media_data["video"] to use entry.media_data directly.
Also start a bare MediaEntry.media_data_init(**kwargs)
method for setting up the media_data and possibly
initialising it with kwargs.
Diffstat (limited to 'mediagoblin/media_types')
-rw-r--r-- | mediagoblin/media_types/video/processing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/media_types/video/processing.py b/mediagoblin/media_types/video/processing.py index 9dc23c55..3a479802 100644 --- a/mediagoblin/media_types/video/processing.py +++ b/mediagoblin/media_types/video/processing.py @@ -77,9 +77,9 @@ def process_video(entry): entry.media_files['webm_640'] = medium_filepath # Save the width and height of the transcoded video - entry.media_data['video'] = { - u'width': transcoder.dst_data.videowidth, - u'height': transcoder.dst_data.videoheight} + entry.media_data_init( + width=transcoder.dst_data.videowidth, + height=transcoder.dst_data.videoheight) # Create a temporary file for the video thumbnail tmp_thumb = tempfile.NamedTemporaryFile() |