3763 Commits

Author SHA1 Message Date
ayleph
c975bd3740 Use UTC for all timesince comparisons
Signed-off-by: Jessica Tallon <jessica@megworld.co.uk>
2015-03-12 16:28:14 +01:00
Christopher Allan Webber
fc3c8f21a0 Patch from breton: fix #5053 (gmg addmedia broken in 0.8.0) 2015-03-05 17:45:54 -06:00
Christopher Allan Webber
50f12414df Merge remote-tracking branch 'refs/remotes/breton/bug/647' 2015-03-05 16:49:06 -06:00
Christopher Allan Webber
2d0511c499 Committing extracted and compiled translations 2015-03-05 15:04:25 -06:00
Christopher Allan Webber
d85f70bd15 Not sure why these changes never got pushed up ... 2015-03-05 15:03:00 -06:00
Boris Bobrov
2b4c339de6 Fix bug 647
Reading a file into memory resulted in depletion of memory. Now files
are read and written lazily, by chunks.
2015-03-02 16:44:13 +03:00
Boris Bobrov
33055472f9 init GStreamer on demand only
Closes-Bug: 5024
2015-02-25 09:20:02 +03:00
Christopher Allan Webber
e6121708e5 Let's try setting up the version number via configure.ac
Why not?
2015-02-21 23:45:21 -06:00
Christopher Allan Webber
571f2964e4 No longer commit .mo files into the repository!
A stupid thing, really you should never commit binary code into the
repository, but...

This commit sponsored by Richard Fontana.  The last sponsored commit!
And one I can imagine Fontana approving of, for he would've disapproved,
surely, of committing .mo files in the first place.
2015-02-21 16:13:31 -06:00
Christopher Allan Webber
207f0f95a9 A more reliable test, check against expected keys, rather than received
If we check against expected, if we got more than we expected, that's
no problem :)

This commit sponsored by Adan Bolte.  Thank you!
2015-02-21 15:35:30 -06:00
Christopher Allan Webber
42e5b2c8ae Stop looking for exact exif numbers
As the exif library adds data, this keeps breaking, which is silly.  Maybe using

This commit sponsored by Mikaël Cluseau.  Thank you!
2015-02-21 15:07:51 -06:00
Christopher Allan Webber
1965e8dd84 Skip audio tests if scikits.audiolab not installed 2015-02-21 14:55:17 -06:00
Christopher Allan Webber
dbc383d483 Merge remote-tracking branch 'refs/remotes/breton/new_gst10' 2015-02-18 15:22:52 -06:00
Christopher Allan Webber
941b9abbb0 Fix the token issues in the migration
There's no .id on access/request token tables, so fixed to use the .token field.

Also switched a reference of client_table -> rt_table
2015-02-17 20:04:15 -06:00
Christopher Allan Webber
d180c131c3 acess_token->access_token 2015-02-17 19:44:58 -06:00
Christopher Allan Webber
f3c5d01199 Fixing typo: notifiction->notification 2015-02-17 19:42:43 -06:00
Christopher Allan Webber
e0713d9ccf This one should be dt_to_utc, not db_to_utc, I believe 2015-02-17 19:42:11 -06:00
Boris Bobrov
6e4eccb1d4 Missing codecs processing with gst 1.4
Gst 1.4 deprecated DiscovererInfo.get_misc in favour of
DiscovererInfo.get_missing_elements_installer_details. Something in
Python bindings seems to be broken and get_misc seems to be not
deprecated but broken.

The change makes sniffer use the method if get_misc fails.
2015-02-18 02:05:57 +03:00
Christopher Allan Webber
6fc6ba99f3 Fixing symlink to jquery.js in post-bower universe
This commit sponsored by Alexander Slovesnik.  Thanks!
2015-02-17 15:48:28 -06:00
Christopher Allan Webber
3cb0a57b95 Fixing video-js symlink for new bower based checkout
This commit sponsored by Thorbjørn Lindeijer.  Thank you!
2015-02-17 15:48:28 -06:00
Boris Bobrov
9834c876b7 added missing import to video transcoding 2015-02-16 13:41:21 +03:00
Boris Bobrov
fd365db43a added tests skipping if there is no proper gstreamer 2015-02-16 13:41:09 +03:00
Boris Bobrov
2d1e89055d Added multiple a-v streams handling
Before only single video stream files were suported.

This patch adds support for files with multiple video streams. Metadata
of such files is now correctly stored. This required change of the
schema used to store info and the change is done in a migration.
2015-02-16 13:41:09 +03:00
Boris Bobrov
945a1c5667 a tiny fix to function doc 2015-02-16 13:41:09 +03:00
Boris Bobrov
54b4b28f84 Add new hook for two-step media type checking
Before uploaded media files were checked by extension. This led to
situations when a plugin can support file with specific extension but
doesn't due to lack of codecs, for example. Since the plugin reported
that it supports uploaded file type, the upload was being declared
successful, but transcoding failed.

The failures were not easy to debug.

The change adds a new hook that could allow two-step checking of the
content. The result of the hook execution returns a tuple with
media type name, manager and a callable sniffer, that can be used to
perform probably expensive checks of the content.

Also the change adds implementation of the hook for video.
2015-02-16 13:41:09 +03:00
Boris Bobrov
067ee13188 updated function docs 2015-02-16 13:41:09 +03:00
Boris Bobrov
c41705bffc added a/v submission testing 2015-02-16 13:41:09 +03:00
Boris Bobrov
57d8212a79 Port of audio to GStreamer 1.0
Includes:
 - transcoders
 - thumbs
 - tests
2015-02-16 13:41:04 +03:00
Boris Bobrov
91f5f5e791 Porting video to GStreamer 1.0
Porting includes:
 - thumbnailer
 - transcoder
 - metadata handling
 - new common discoverer for media
 - new tests with in-memory test video generating
 - handling regardless of audio availability in the file
 - Pythonic gst pipelines
2015-02-16 05:35:36 +03:00
Jessica Tallon
d705f3b760 Fix #1065 - Migrate from native datetimes to UTC 2015-02-15 17:17:01 +01:00
Jessica Tallon
247c987cf7 Remove deprecated oauth 2 plugin 2015-02-15 17:17:01 +01:00
Jessica Tallon
4fd520364f Change 'federation' name to 'api' which is more suitable 2015-02-15 17:17:01 +01:00
Boris Bobrov
7e266d5a37 Rewrite thumbnailer
Previous thumbnailer didn't always work properly. It was also not ready
to be ported to GStreamer 1.0

The rewrite makes it shorter, more pythonic and prepares it for porting.

 - no longer uses playbin2;
 - is tested
 - logs some events
 - previous thumbnailer is removed
2015-02-15 05:52:22 +03:00
Asheesh Laroia
1a7d401c32 Remove html5slider Javascript helper
This helper was originally added as a "polyfill"
(backward-compatibility shim) for Firefox version 23 and older, so
that <input type="range"> that audio.js uses could render nicely in
those versions of Firefox.

Chromium did not need this shim, and Firefox 23 (released on Aug 6,
2013) added support for this. Therefore, let us remove this
dependency. By current metrics at caniuse.com
<http://caniuse.com/#feat=input-range>, 88.14% of web users support
this attribute. Opera Mini and old versions of Internet Explorer (6-8)
are the only holdouts.

Note also that the html5slider.js is uninterested in adding this to
the npm package manager (or any package manager) repository
<https://github.com/fryn/html5slider/issues/5>, meaning that keeping
it in the mediagoblin extlib section would mean manual
maintenance/updating by the GNU MediaGoblin team.

This commit also removes GMG's use of the shim.
2015-02-13 15:55:16 -06:00
Jessica Tallon
63d6953774 Fix #1052 - Make activity cascade delete work when deleting a user 2015-01-27 13:31:29 +00:00
Jessica Tallon
a02de38f91 Let parser handle typing for deletuser command 2015-01-20 12:24:13 +00:00
Christopher Allan Webber
c300e40bc1 Committing extracted and compiled translations 2015-01-18 16:03:38 -06:00
Christopher Allan Webber
53f91d1991 Moving translation files over for Pootle move. 2015-01-16 16:06:42 -06:00
Christopher Allan Webber
5d8e56ffc2 Committing extracted and compiled translations 2015-01-16 15:15:20 -06:00
Jessica Tallon
2663394688 Add upper limit to count GET param for inbox and feed 2015-01-06 12:06:12 +00:00
Jessica Tallon
7eac1e6d6b Fix 1e0c938 by allowing target to be translatable in Activity.content 2014-12-22 11:48:01 +00:00
Jessica Tallon
1e0c938c63 Allow Activity.content to be fully translatable 2014-12-22 11:00:44 +00:00
Jessica Tallon
ce1344f40b Fix #1066 - Fix OAuth issue when using GET params 2014-12-18 08:53:05 +00:00
Jessica Tallon
95dbed2d72 Fix #1078 - Stop 500 error when GET request on inbox 2014-12-16 12:15:13 +00:00
Jessica Tallon
9e715bb07f Fix #1077 - Fix updating comment via API and add test 2014-12-16 12:05:18 +00:00
Jessica Tallon
9a51bf1ebc Fix #1064 - Add major and minor feed for outbox/feed 2014-12-15 18:04:50 +00:00
Jessica Tallon
4dec1cd695 Fix #1069 - Add deleting images and comments via delete activities 2014-12-15 11:18:30 +00:00
Christopher Allan Webber
57024f34a3 Committing extracted and compiled translations 2014-12-14 15:02:50 -06:00
Christopher Allan Webber
e2a4e048c9 Committing extracted and compiled translations 2014-12-13 10:04:10 -06:00
Christopher Allan Webber
8441e87d75 Committing present MediaGoblin translations before pushing extracted messages 2014-12-13 10:04:10 -06:00