Faster sniffing
authorJoar Wandborg <git@wandborg.com>
Thu, 22 Mar 2012 00:27:19 +0000 (01:27 +0100)
committerJoar Wandborg <git@wandborg.com>
Thu, 22 Mar 2012 00:27:19 +0000 (01:27 +0100)
commita9d84d4cb79252549d472f9f2059b45bbce4f4f1
treee3b2301a34cacef2d40a2542a63f06f490faf32c
parent9743ce886ab3655662afaa0ef7b08791a65e37da
Faster sniffing

- Sniffing now goes through the old extension-based filter before
  doing it the bitsniffing way.
- Refractored get_media_type_and_manager(filename).
- Removed ogg extension from video accepted extensions, audio
  will take care of that.
- Added custom audio player, still WIP,but working.
- Added test for sniffing. This only tests for the
  mediagoblin.media_types.image type, as that is the only
  one enabled from start.
mediagoblin/media_types/__init__.py
mediagoblin/media_types/video/__init__.py
mediagoblin/static/css/audio.css [new file with mode: 0644]
mediagoblin/static/js/audio.js [new file with mode: 0644]
mediagoblin/templates/mediagoblin/media_displays/audio.html
mediagoblin/tests/test_submission.py