4227 Commits

Author SHA1 Message Date
Jessica Tallon
6185a4b9e6 Fix the GenericForeignKey implementation 2015-05-26 16:48:58 +02:00
Jessica Tallon
bfe1e8ce88 Migrate Activity to using the new GenericForeignKey 2015-05-26 16:48:58 +02:00
Jessica Tallon
641ae2f1e1 Add GenericForeignKey field and reference helper model 2015-05-26 16:48:58 +02:00
Christopher Allan Webber
5b8e0b2a63 Use of deprecated frombytes when processing videos causes the task to fail
(Anonymous contribution, not by me)

  When transcoding a video using a recent version of PIL transcoding a
  video fails reproducible. The reason for this is an AttributeError:
  'module' object has no attribute 'frombytes'gets raised, while a
  thumbnails is being created. This is because frombytes alias was
  deprecated in favor of fromstring.
2015-05-22 14:16:45 -05:00
Christopher Allan Webber
fd4ddeb14e #5314 Prevent ZeroDivisionError in exif.py 2015-04-27 17:26:59 -05:00
Christopher Allan Webber
16cf193d9b TinyMCE plugin loading should NOT be here.
This might break the blog plugin, but it's kind of broken already :\
2015-04-23 14:10:47 -05:00
Boris Bobrov
3510f94811 Move check that metadata exists earlier
Because of gstreamer-1.0 we need to migrate from old format of storing
metadata to new one. It seems that there are cases when original
metadata is empty for some reason.

The patch adds an earlier check that original metadata exists, skipping
everything is it doesn't.

Closes bug 5071
2015-04-23 11:48:23 -05:00
Boris Bobrov
364253857b fixed 5068 2015-04-22 17:20:31 -05:00
Boris Bobrov
4522ecef80 Proper handling of tags in skip_transcode
The function to retrieve tags was used incorrectly in skip_transcode,
assuming that str will be returned.

Now the code is aware of the return format of the function.

Closes bug 5065
2015-03-20 02:35:52 +03:00
Boris Bobrov
bd50f8bf70 Prevent exception on transcoding failure (bug 460)
Fix an unhandled exception when video fails to transcode for some
reason. Closes bug 460.
2015-03-20 01:53:18 +03:00
Jakob Kramer
f4686cde16 wtforms.fields.TextField was deprecated
WTForms documentation:
> The TextField alias for StringField is deprecated.

Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
2015-03-12 21:57:53 +02:00
Jaakko Luttinen
c8c09bc43b Fix welcome image URL in the front page template (#902)
The Goblin image URL was hardcoded in the frontpage welcome
template. Now it correctly uses the static directory settings.

Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
2015-03-12 21:31:23 +02:00
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