Extrapolate type= based on the video metadata that we have, if we can.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 3 Mar 2013 17:41:40 +0000 (11:41 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 3 Mar 2013 17:41:40 +0000 (11:41 -0600)
commit787aafd64482de3a4d150c75ffec024e8e11f287
tree21f1be831ed3ed059e6b60f5fcc01ed51956d87a
parentb35dfd3271bb40168b3d8c9335238715584eac02
Extrapolate type= based on the video metadata that we have, if we can.

It's kind of awkward because it relies on there being a entry.media_data,
but that's not guaranteed... (see http://issues.mediagoblin.org/ticket/650)
so we use a dopey fallback in the template in that case (kind of
annoying info duplication).

This commit sponsored by Piotr Wieczorek.  Thank you!
mediagoblin/media_types/video/models.py
mediagoblin/media_types/video/util.py
mediagoblin/templates/mediagoblin/media_displays/video.html