diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-03-02 19:06:31 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-03-02 19:06:31 -0600 |
commit | ddbf6af1e20222882a7ce559804ed48f4ad31a92 (patch) | |
tree | e53664048ed3f46d8c034eee64fff298b1f7ae13 /mediagoblin/tools/common.py | |
parent | fd693e368bf7d344c29ff99b77acbb92f4524b73 (diff) | |
download | mediagoblin-ddbf6af1e20222882a7ce559804ed48f4ad31a92.tar.lz mediagoblin-ddbf6af1e20222882a7ce559804ed48f4ad31a92.tar.xz mediagoblin-ddbf6af1e20222882a7ce559804ed48f4ad31a92.zip |
Huge amount of work to (mostly) allow .ogg (and maybe other) formats to skip transcode
- Update get_display_media in several ways:
- now uses the media type's own declaration of the order of things
- returns both the media_size and the media_path, as per the docstring
- implicitly uses self.media_files as opposed to forcing you to pass it in
- update videos to use get_display_media
- update images to declare media_fetch_order in the media manager (videos also)
- update stl to use media.media_files['original'] instead of weird
use of get_display_media
- update sidebar to only conditionally show webm_640
TODO still: identify video type information *during* processing, show
that in the <video><source /></video> element.
This commit sponsored by Nathan Yergler. Thanks, nyergler!
Diffstat (limited to 'mediagoblin/tools/common.py')
-rw-r--r-- | mediagoblin/tools/common.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mediagoblin/tools/common.py b/mediagoblin/tools/common.py index c9f9d032..34586611 100644 --- a/mediagoblin/tools/common.py +++ b/mediagoblin/tools/common.py @@ -16,7 +16,6 @@ import sys -DISPLAY_IMAGE_FETCHING_ORDER = [u'medium', u'original', u'thumb'] global TESTS_ENABLED TESTS_ENABLED = False |