aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'master' of gitorious.org:mediagoblin/mediagoblinJoar Wandborg2012-03-294-2/+16
|\ \ \ \
| * | | | The video media_type needs pygtk/gtk.Elrond2012-03-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Note in the docs, that the video media_type needs the gtk and pygtk modules and where to get them on debian.
| * | | | 411: Add relationship and backrefs to media_data tables.Elrond2012-03-283-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding proper relationship()s and especially backref()s will delete media_data rows along with the main MediaEntry. This fixes #411.
* | | | | Seeking works in firefoxJoar Wandborg2012-03-292-34/+148
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added support for indicating multiple buffered ranges (Firefox) - Added volume slider (Chromium) - Replaced stop button with faux pause button - Added 'ended' event handler
* | | | Changed audio.* Image* importsJoar Wandborg2012-03-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that they no longer import from PIL explicitly. This is due to explicit PIL.Image* imports failing on a Ubuntu machine within virtualenv. PIL is a mystery I have yet to find the energy to unravel. The 'implicit' approach works both for the affected machine and my local machine and I've seen it more often out in the wild, so I'm assuming it is the right way.
* | | | Fixed test_submission -> test_evil_file testJoar Wandborg2012-03-271-3/+2
| | | |
* | | | Merge remote-tracking branch 'joar/audio+sniffing'Joar Wandborg2012-03-2722-90/+1536
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/media_types/image/processing.py mediagoblin/media_types/video/__init__.py mediagoblin/media_types/video/processing.py mediagoblin/tests/test_submission.py
| * | | | Media type refractors, pep8, lintJoar Wandborg2012-03-267-32/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed THUMB_SIZE, MEDIUM_SIZE constants, depend on configuration values instead. - pep8 refractoring
| * | | | Faster sniffingJoar Wandborg2012-03-226-25/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
| * | | | Replaced 'not foo == None' with 'foo is not None' in ascii sniffing tooJoar Wandborg2012-03-081-1/+1
| | | | |
| * | | | Clean up the workbench after audio processingJoar Wandborg2012-03-081-0/+3
| | | | |
| * | | | Changed `not foo == None` to `foo is not None` in image sniff handlerJoar Wandborg2012-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >>> class foo(object): def __eq__(self, other): return True >>> f = foo() >>> f == None True >>> f is None False -- <http://stackoverflow.com/questions/26595/is-there-any-difference-between-foo-is-none-and-foo-none>
| * | | | Added a notice about mgg.global_config perhaps sometime notJoar Wandborg2012-03-081-0/+2
| | | | | | | | | | | | | | | | | | | | being loaded before mediagoblin.processing is imported.
| * | | | Removed diaper patterns from audio/video sniffers, video preload set to ↵Joar Wandborg2012-03-078-22/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'metadata' * mediagoblin.processing THUMB_/MEDIUM_ constants are now based on the ini settings * Removed diaper patterns from audio and video sniffing * Changed HTML5 video preload to 'metadata'
| * | | | Audio thumbnailing & spectrograms, media plugins use sniffingJoar Wandborg2012-02-2811-28/+844
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added extlib/freesound/audioprocessing.py * config_spec * Added create_spectrogram setting * Added media:medium and media:thumb max_{width,height} settings * Added sniffing logic to - audio.processing:sniff_handler - video.processing:sniff_handler * Changed audio.processing:sniff_handler logic * Added audio thumbnailing functionality to audio.processing (works only with create_spectrogram enabled) * Refractored contexts in audio.processing * Added audio.transcoders:AudioThumbnailer Used for creating spectrograms and spectrogram thumbnails - Wadsworth's Constant, we meet again :) * audio.transcoders:AudioTranscoder - Added mux_string kwarg - Delete self.pipeline on self.halt() * Changed str.format formatting in image.processing:sniff_handler Had {1} without an {0}, changed to {0} * Refractored VideoTranscoder to use transcode() for transcoding instead of __init__() * Added discover() method to video.transcoders:VideoTranscoder * Added spectrogram display to media_displays/audio.html * Updated test_submission to reflect changes in media plugin delegation
| * | | | Removed old audio.transcoder file (the real one is audio.transcoders)Joar Wandborg2012-02-161-18/+0
| | | | |
| * | | | Added sniffing logic for image media typeJoar Wandborg2012-02-161-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | For now, it's a re-implementation of the old file-extension checking logic, as I have not found a GStreamer-like "discoverer" in PIL.
| * | | | Changed media processing delegation to a 'sniffing' methodJoar Wandborg2012-02-1510-12/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added sniff handlers to all media plugins All of them except audio returning False for ANYTHING at the moment.
| * | | | Audio media handler, media sniffing, video fixesJoar Wandborg2012-02-149-16/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added audio processing code * Added audio display template * Added audio configuration setting * Changed video docstring
* | | | | Removing superfluous whitespaceChristopher Allan Webber2012-03-261-1/+1
| | | | |
* | | | | Merge remote-tracking branch 'remotes/slikdigit/bassam'Christopher Allan Webber2012-03-262-7/+21
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/media_types/image/processing.py
| * | | | | fix for ticket #404Bassam2012-03-152-15/+30
| | | | | |
* | | | | | Merge remote-tracking branch 'remotes/bretts/bug261-resized-filenames'Christopher Allan Webber2012-03-266-256/+238
|\ \ \ \ \ \
| * \ \ \ \ \ Merge remote branch 'origin/master' into bug261-resized-filenamesBrett Smith2012-03-2684-2516/+2739
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | This merge involved moving the new FilenameBuilder class to processing/__init__.py, and putting the comment deletion tests back into test_submission.py using the refactored functions.
| * | | | | | Rename to FilenameBuilder, with a main method named fill.Brett Smith2012-03-264-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think these names better convey what's actually going on. I updated the documentation a bit while I was at it.
| * | | | | | Refactor video processing to use FilenameMunger.Brett Smith2012-03-251-8/+4
| | | | | | |
| * | | | | | Use FilenameMunger.Brett Smith2012-03-251-28/+17
| | | | | | |
| * | | | | | Add documentation to the FilenameMunger class.Brett Smith2012-03-251-1/+16
| | | | | | |
| * | | | | | Add FilenameMunger class to processing, with tests.Brett Smith2012-03-252-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Munging filenames is something all media type processors want to be able to do, so I'm refactoring it out into a nice bite-sized class.
| * | | | | | Add tests for image processing. Check filenames and image sizes.Brett Smith2012-03-202-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test helps verify that bug #261 is actually fixed. In order to test that all the processed images are smaller, I needed to add an image that's bigger than processing.MEDIUM_SIZE, hence bigblue.png.
| * | | | | | Make a function to generate test image filenames.Brett Smith2012-03-201-11/+9
| | | | | | |
| * | | | | | Prefer nose assert_* methods to the assert built-in.Brett Smith2012-03-201-7/+10
| | | | | | |
| * | | | | | Refactor false image tests.Brett Smith2012-03-201-28/+13
| | | | | | |
| * | | | | | Refactor normal upload tests.Brett Smith2012-03-201-27/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is nice because it means we do *all* the normal sanity tests for *all* the normal uploads. check_url() can be used in other tests too.
| * | | | | | Refactor MediaEntry fetches/checks into check_media().Brett Smith2012-03-201-14/+13
| | | | | | |
| * | | | | | Refactor data posts into one do_post function.Brett Smith2012-03-201-112/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the data posts in these tests had a lot of common code. Putting all that into a function makes it easier to write more tests (which I'll be doing in a bit) and see what's really being tested.
| * | | | | | small readability improvements in resize_imageBrett Smith2012-03-181-3/+3
| | | | | | |
| * | | | | | Refactor image resize code, with better filenames (#261)Brett Smith2012-03-171-41/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code to make thumbnail- and medium-sized images in processing.py is pretty similar, so I rolled that out into a separate function that we call with different arguments as appropriate. The new function should work identically to the old code, except it saves images with filenames based on the original filename, like `foobar.medium.jpg` instead of just `medium.jpg`. This fixes bug #261.
* | | | | | | Add comment in JavaScript file about duplicating the password fieldJef van Schendel2012-03-261-0/+1
| |/ / / / / |/| | | | |
* | | | | | Merge branch 'master' of gitorious.org:mediagoblin/mediagoblinJef van Schendel2012-03-253-2/+33
|\ \ \ \ \ \
| * \ \ \ \ \ Merge remote-tracking branch 'gandaro/forgot-password-autofillin'Elrond2012-03-253-2/+33
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gandaro/forgot-password-autofillin: set username default server-side Fill username automatically in (Forget Password)
| | * | | | | | set username default server-sideJakob Kramer2012-03-253-8/+2
| | | | | | | |
| | * | | | | | Fill username automatically in (Forget Password)Jakob Kramer2012-03-243-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fill the username automatically in the "Forget Password" form if the user already entered his username on the login page
* | | | | | | | Header style changeJef van Schendel2012-03-252-43/+36
|/ / / / / / /
* | | | | | | Drop debug from migration.Elrond2012-03-251-2/+0
| | | | | | |
* | | | | | | Cleanup mongo->sql converter.Elrond2012-03-251-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. No need to drop media_data['exif'], we only have and want media_data['exif_all']. 2. Use media['_id'] instead of media._id (better not use dot-notation on mongo objects in such a low level tool).
* | | | | | | Do not fill media_data['exif'] any more.Elrond2012-03-251-7/+0
| | | | | | |
* | | | | | | Migration fixup: Drop empty exif_all.Elrond2012-03-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the exif info is totally empty, do not add it at all to the media_data dict in mongo.
* | | | | | | Create migration to move exif data around in media_data.Elrond2012-03-251-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move media_data['exif']['clean'] to media_data['exif_all'] drop media_data['exif']['useful'] drop media_data['exif']
* | | | | | | Use exif_display_iter in the template.Elrond2012-03-251-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the newly created entries have media_data.exif_all use the exif_display_iter method to calculate the exif entries for displaying on the fly. After the mongo migration all the old entries will also have exif_all and will work again.