Ben Sturmfels [Mon, 9 Sep 2019 06:24:45 +0000 (16:24 +1000)]
Provide an update_extlib.sh alternative for Guix.
Ben Sturmfels [Mon, 9 Sep 2019 05:20:52 +0000 (15:20 +1000)]
Update guix-env.scm for use with current version of Guix.
Boris Bobrov [Mon, 13 Aug 2018 08:53:52 +0000 (10:53 +0200)]
require higher version of six due to installation problems
Boris Bobrov [Fri, 13 Jul 2018 17:05:38 +0000 (19:05 +0200)]
Fix saving original of the video
Original of the video was not saved because info about it was not
written to the database. Fixed that.
Also removed original video from get_all_media listing. The method is
weird, we should evaluate whether it is video-specific and how to
generalize it.
Boris Bobrov [Fri, 13 Jul 2018 16:29:01 +0000 (18:29 +0200)]
simplify an if and fix string formatting
Boris Bobrov [Fri, 13 Jul 2018 13:00:58 +0000 (15:00 +0200)]
nitpicking
Boris Bobrov [Thu, 12 Jul 2018 17:06:18 +0000 (19:06 +0200)]
close tag in subtitles html
Boris Bobrov [Thu, 12 Jul 2018 17:04:45 +0000 (19:04 +0200)]
move subtitles out of media streams in html
Boris Bobrov [Thu, 12 Jul 2018 16:49:35 +0000 (18:49 +0200)]
Merge branch 'transcoding_progress'
This probably broke stuff
Boris Bobrov [Thu, 12 Jul 2018 16:27:44 +0000 (18:27 +0200)]
Fixes for small bugs
There were some blocking issues in the code. They are small, but break
tests and/or production. Fixed some of them.
Boris Bobrov [Thu, 12 Jul 2018 10:50:54 +0000 (12:50 +0200)]
always guess the same filetype
Boris Bobrov [Thu, 12 Jul 2018 10:50:37 +0000 (12:50 +0200)]
finally fix url validator
Boris Bobrov [Thu, 12 Jul 2018 05:36:00 +0000 (07:36 +0200)]
Revert "Revert "Import messages in blog views""
This reverts commit
8c36ec5246828e3c99d956edd8524f3ade430571.
Boris Bobrov [Wed, 11 Jul 2018 16:26:23 +0000 (18:26 +0200)]
fix typo
Boris Bobrov [Wed, 11 Jul 2018 15:30:09 +0000 (17:30 +0200)]
fix auth error and simplify url and email checks
Boris Bobrov [Wed, 11 Jul 2018 14:54:08 +0000 (16:54 +0200)]
remove requirement for the file to be with single dot in name
Boris Bobrov [Wed, 11 Jul 2018 14:53:32 +0000 (16:53 +0200)]
fix default gmg help message
Boris Bobrov [Tue, 10 Jul 2018 16:29:30 +0000 (18:29 +0200)]
Merge remote-tracking branch 'gsoc2016/Subtitle-1'
Andrew Browning [Sun, 8 Jul 2018 23:00:52 +0000 (19:00 -0400)]
Fix server crash on blog about page [#5572]
Don't bother checking for user's blog if no user returned.
ĎÚβĨŐÚŚ Dod [Tue, 26 Jun 2018 13:28:29 +0000 (09:28 -0400)]
2 bug fixes in editor views
* `WTForms` instances get `__init__`-ed with `defaults` as `kwargs`.
The first arg is a `request.form` (which is what one must supply if
this is a `POST` and must *not* supply otherwise).
The content of that form (empty on `GET`) has higher priority than
the defaults (which makes the user get an empty form).
* Fix `edit_profile()` to allow changing `location` from a non-blank
value to blank (i.e. removing the location).
(cherry picked from commit
75f3e23b92392b9bd309fab4c1a52fd38d453627)
Boris Bobrov [Fri, 8 Jun 2018 15:46:29 +0000 (17:46 +0200)]
Revert "cap sqlalchemy"
This reverts commit
d803f14361ec02878afe4f6b196ce917010a1e2f.
WTForms 2.2 was releases, see
https://issues.mediagoblin.org/ticket/5570#comment:6
Dpg [Wed, 23 May 2018 14:59:38 +0000 (00:59 +1000)]
Add Creative Commons 4.0 licenses [#955]
Add CC version 4.0 licenses to SORTED_LICENSES.
Boris Bobrov [Mon, 30 Apr 2018 18:26:34 +0000 (20:26 +0200)]
cap sqlalchemy
Closes #5557 and fixes some complaints in irc
Andrew Browning [Sun, 8 Apr 2018 23:49:46 +0000 (19:49 -0400)]
Add moderation panel thumbnail header [#5563]
Add moderation panel column header for thumbnail column.
Andrew Browning [Sun, 8 Apr 2018 23:40:02 +0000 (19:40 -0400)]
Process videos with incorrect date tags [#5409]
Video processing expects datetime tags in a specific format. This
commit allows videos with missing or incorrect datetime tags to be
processed with no datetime tags instead of failing.
Andrew Browning [Wed, 25 Oct 2017 06:33:49 +0000 (02:33 -0400)]
Prevent video plugin from processing svg [#934]
Prior to the gstreamer-1.0 upgrade, the video processing engine included
a check for excluded extensions which gstreamer might accept despite us
not wanting to process them. In commit
91f5f5e, the check against
EXCLUDED_EXT was removed. Since then, the video plugin has accepted and
attempted to process svg files.
This commit adds the check against EXCLUDED_EXTS into the sniff_handler
function so that we can bail out on certain file extensions before the
plugins tries to sniff the file type. The previous implementation
excluded nef files, which appears to be a Nikon camera image. I've
copied that forward to this code. I've also added a log message to
indicate that we're purposefully refusing to process the file.
Andrew Browning [Wed, 4 Apr 2018 19:24:08 +0000 (15:24 -0400)]
Remove backup file added in
b5dd245
Andrew Browning [Mon, 2 Apr 2018 05:34:35 +0000 (01:34 -0400)]
Use https:// instead of git:// to clone [#5551]
This was partially addressed in
eee3e41 but missed many items.
Andrew Browning [Wed, 29 Nov 2017 16:56:22 +0000 (11:56 -0500)]
Add chrysn to AUTHORS
chrysn [Wed, 30 Aug 2017 20:59:32 +0000 (22:59 +0200)]
Fix EXIF rotation to make the image portrait on demand
Closes: https://issues.mediagoblin.org/ticket/5525
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
Boris Bobrov [Fri, 17 Nov 2017 11:23:12 +0000 (14:23 +0300)]
add alembic migrations to MANIFEST
Alembic migrations do not get imported anywhere. Because of it
they do not get included to the python package. But they need to
be there in order for migrations to succeed.
Boris Bobrov [Tue, 14 Nov 2017 19:01:19 +0000 (22:01 +0300)]
move alembic.ini to python app dir
Boris Bobrov [Tue, 14 Nov 2017 16:22:17 +0000 (19:22 +0300)]
add alembic.ini to MANISFEST.in
Boris Bobrov [Sun, 12 Nov 2017 23:43:25 +0000 (02:43 +0300)]
remove mentions of mediagoblin_local.ini
Boris Bobrov [Sun, 12 Nov 2017 23:38:44 +0000 (02:38 +0300)]
clarify installation instructions about mediagoblin.ini
Romain Porte [Sat, 11 Nov 2017 18:23:31 +0000 (19:23 +0100)]
Added tests for tags in image API object
Romain Porte [Sat, 11 Nov 2017 18:23:30 +0000 (19:23 +0100)]
Added tags in API (view them and edit them)
Romain Porte [Sat, 11 Nov 2017 18:02:12 +0000 (19:02 +0100)]
Improved gitignores for patch submitting
In order to ease the patch submitting process, *.patch was added as per
Linux kernel's .gitignore. Test cache directory was also added in its
own gitignore (as per kernel's recommendation on .gitignore location).
Romain Porte [Sat, 11 Nov 2017 17:29:56 +0000 (18:29 +0100)]
Fixed flake8 errors for tests/test_api.py
Since I am adding a test I also took time to fix all flake8 errors in
this test file, since I may add more tests in there and I prefer to work
on a coherent code base.
Romain Porte [Sat, 11 Nov 2017 17:29:55 +0000 (18:29 +0100)]
Added tests for custom file name using API
This adds a new test and verify that the old test has the
"unknown.<extension>" format. As funny as it seems, the "image/jpeg"
Content-Type will generate a ".jpe" extension but I was expecting a more
common ".jpg" extension. This may be a bug, but this is not the subject
of this patch.
Romain Porte [Sat, 11 Nov 2017 17:29:54 +0000 (18:29 +0100)]
Change API filename upload using custom header
When uploading a file using the API its same is always going to be
'unknown.<extension>', which is not good looking for file urls. This
patch proposes a custom header named 'X-File-Name' that allows to
specify a file name using an API client.
This changeset was tested with a local OAuth1 client.
Boris Bobrov [Sat, 11 Nov 2017 13:05:43 +0000 (16:05 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Boris Bobrov [Sat, 11 Nov 2017 13:05:02 +0000 (16:05 +0300)]
add Roman to AUTHORS
Romain Porte [Sat, 11 Nov 2017 12:34:59 +0000 (13:34 +0100)]
Replaced /bin/celeryd by /bin/celery in lazycelery
On a fresh clone the celeryd executable is not present. This is because
of the celery version migration to celery 4.x. As per celery's
documentation at http://docs.celeryproject.org/en/latest/whatsnew-4.0.html,
celeryd is no longer shipped in this version.
Andrew Browning [Tue, 31 Oct 2017 15:55:52 +0000 (11:55 -0400)]
Fix location of host-meta.xml file [#5543]
Andrew Browning [Mon, 23 Oct 2017 04:05:37 +0000 (00:05 -0400)]
Fix trivial spelling error in test comment
Simen Heggestøyl [Sun, 8 Oct 2017 09:04:10 +0000 (11:04 +0200)]
Port batchaddmedia command to Python 3
Simen Heggestøyl [Sun, 8 Oct 2017 13:57:38 +0000 (15:57 +0200)]
Make admin panel headers readable in Airy theme
The admin panel headers are white by default, making them almost
unreadable on the light background used in the Airy theme. Make the
headers dark, like text elsewhere in the theme.
Simen Heggestøyl [Sun, 15 Oct 2017 11:33:36 +0000 (13:33 +0200)]
Handle collection in batchaddmedia command
Make the batchaddmedia command look for a 'collection-slug' column, that
for each row may specify the slug of a collection that the media should
be added to. This matches the '--collection-slug' argument of the
addmedia command.
Simen Heggestøyl [Sat, 14 Oct 2017 21:46:17 +0000 (23:46 +0200)]
Support Unicode characters in configuration values
Prior to this commit, using a Unicode character in a configuration
string would result in a `UnicodeDecodeError` being raised. Supporting
Unicode characters is especially useful in user-facing configuration
strings, such as `html_title`.
Simen Heggestøyl [Sun, 15 Oct 2017 11:44:17 +0000 (13:44 +0200)]
Remove dead code in batchaddmedia.py
Remove an unused import and an unused local variable from
batchaddmedia.py.
Andrew Browning [Sun, 8 Oct 2017 20:19:16 +0000 (16:19 -0400)]
Update batchaddmedia csv description docs [5458]
Commit
c0ea2bad changed the expected location column header of csv files
used by the batchaddmedia command from 'media:location' to 'location'.
This change updates the docs to match.
Andrew Browning [Tue, 15 Aug 2017 06:11:06 +0000 (02:11 -0400)]
Fix #5460 - Log IP address for failed login
This patch logs the remote address when a login attempt fails.
Andrew Browning [Wed, 20 Sep 2017 05:39:46 +0000 (01:39 -0400)]
Fix #5517 - Change docs to clone repo using https
Andrew Browning [Wed, 20 Sep 2017 05:02:10 +0000 (01:02 -0400)]
Add unit test for #5524
Add a unit test to verify that the change introduced in
07c535c no
longer resulst in a zero divide error when gps data contains no divisor.
This commit includes a test image created by Andrew Browning. Andrew
Browning dedicates this image to the public domain under the CC0 license.
Andrew Browning [Wed, 20 Sep 2017 04:20:43 +0000 (00:20 -0400)]
Fix #5524 Zero division error in exif.py
This patch implements the safe_gps_ratio_divide function for gps
direction and altitude values to prevent a zero divide error on
malformed GPS data.
Vijeth Aradhya [Tue, 29 Aug 2017 06:06:23 +0000 (06:06 +0000)]
Merge branch 'multiple-qualities-frontend' into 'transcoding_progress'
Minor changes
See merge request !3
vijeth-aradhya [Tue, 29 Aug 2017 05:56:12 +0000 (11:26 +0530)]
Change complimentary_task to complementary_tas
Closes #11
vijeth-aradhya [Sun, 27 Aug 2017 17:42:46 +0000 (23:12 +0530)]
Remove self.entry in VideoTranscoder
vijeth-aradhya [Tue, 22 Aug 2017 08:05:44 +0000 (13:35 +0530)]
Show default resolution progress in processing panel
vijeth-aradhya [Tue, 22 Aug 2017 08:00:13 +0000 (13:30 +0530)]
Add main_transcoding_progress to ProgressCallback
vijeth-aradhya [Tue, 22 Aug 2017 07:52:23 +0000 (13:22 +0530)]
Add main_transcoding_progress column migration
This field is required to store the progress of the default
resolution of the media. So, we now store the total progress of transcoding
the video in 'transcoding_progress' and progress of transcoding the default
resolution in 'main_transcoding_progress'.
vijeth-aradhya [Mon, 21 Aug 2017 18:45:21 +0000 (00:15 +0530)]
Add videojs-resolution-switcher to gitignore
vijeth-aradhya [Thu, 17 Aug 2017 12:27:29 +0000 (17:57 +0530)]
Create a seperate test for get_all_media
vijeth-aradhya [Wed, 16 Aug 2017 16:21:55 +0000 (21:51 +0530)]
Add test for get_all_media()
Check for it's returned values.
ayleph [Thu, 29 Jun 2017 04:49:29 +0000 (21:49 -0700)]
Fix #5514 - Add to Collection causes server error
Re-arrange code to check whether a collection has been selected prior
to checking whether an item already exists in the selected collection.
This fixes a regression introduced in
0f3bf8d.
Andrew Browning [Tue, 15 Aug 2017 06:29:54 +0000 (02:29 -0400)]
Properly escape asterisk in *buntu
ayleph [Wed, 28 Jun 2017 05:45:42 +0000 (22:45 -0700)]
Fix #5513 - Can't delete blog post drafts
Modify the @get_media_entry_by_id decorator to return media regardless
of processing state. Separately modify all view functions that use the
@get_media_entry_by_id decorator to require that the media be in the
processed state, other than for the media_confirm_delete view. This
allows blog post drafts to be deleted without returning a 404. Further,
it adds the ability to delete unprocessed media in the future, which
would be a nice addition to the user processing panel.
vijeth-aradhya [Mon, 14 Aug 2017 14:07:37 +0000 (19:37 +0530)]
Change webm to webm_video in media_size check
Closes #8
Vijeth Aradhya [Mon, 14 Aug 2017 12:08:36 +0000 (12:08 +0000)]
Merge branch 'master' into 'multiple-qualities-frontend'
Add multiple video qualities feature
See merge request !2
vijeth-aradhya [Fri, 11 Aug 2017 14:10:41 +0000 (19:40 +0530)]
Small changes to fixing transcode percentage
Related to #6
vijeth-aradhya [Thu, 10 Aug 2017 14:09:33 +0000 (19:39 +0530)]
Change entry.title to entry.id in logging
Related to #5
vijeth-aradhya [Thu, 10 Aug 2017 14:02:29 +0000 (19:32 +0530)]
Fix percentage reporting
Report transcoding_progress as the overall percent of all resolutions.
Modify Logging.
Closes #6
vijeth-aradhya [Tue, 8 Aug 2017 16:39:08 +0000 (22:09 +0530)]
Add unicode to accomodate title of MediaEntry
Related to #5
vijeth-aradhya [Sat, 5 Aug 2017 11:53:17 +0000 (17:23 +0530)]
Replace print statements to logging
Closes #5
vijeth-aradhya [Mon, 31 Jul 2017 16:38:28 +0000 (22:08 +0530)]
Add previous mg css to video player
vijeth-aradhya [Sun, 23 Jul 2017 04:42:07 +0000 (10:12 +0530)]
Modify video.html to add video-resolution-switcher plugin
vijeth-aradhya [Sun, 23 Jul 2017 04:40:06 +0000 (10:10 +0530)]
Add change-video-resolution.js to start video-resolution-switcher plugin
vijeth-aradhya [Sun, 23 Jul 2017 04:36:18 +0000 (10:06 +0530)]
Add video-resolution-switcher (video.js plugin) v0.4.2
vijeth-aradhya [Sun, 23 Jul 2017 04:33:45 +0000 (10:03 +0530)]
Change video.js version to v5.20.1
vijeth-aradhya [Sun, 23 Jul 2017 04:31:07 +0000 (10:01 +0530)]
Revert "Modify video template to accomodate multiple resolutions"
This reverts commit
f6ba0e561bfb62991d70a4c002edf142d9d7540c.
vijeth-aradhya [Sun, 23 Jul 2017 04:31:04 +0000 (10:01 +0530)]
Revert "Add change-video-resolution.js to start the plugin"
This reverts commit
e44c4569c7f7ac4b0b1c8470f38f7f1d09dd00f8.
vijeth-aradhya [Sun, 23 Jul 2017 04:31:00 +0000 (10:01 +0530)]
Revert "Modify video-js link folder and change version"
This reverts commit
0e49df65fea13b15c5566f2ee44842feaeaaccd0.
vijeth-aradhya [Sun, 23 Jul 2017 04:30:48 +0000 (10:00 +0530)]
Revert "Add video-resolution-switcher (v0.4.2) plugin"
This reverts commit
19d7c450706df1aae74003fcfcfa03d17ebd6f54.
vijeth-aradhya [Tue, 18 Jul 2017 04:16:37 +0000 (09:46 +0530)]
Add video-resolution-switcher (v0.4.2) plugin
vijeth-aradhya [Tue, 18 Jul 2017 04:14:06 +0000 (09:44 +0530)]
Modify video-js link folder and change version
vijeth-aradhya [Sun, 16 Jul 2017 15:48:05 +0000 (21:18 +0530)]
Add change-video-resolution.js to start the plugin
vijeth-aradhya [Sun, 16 Jul 2017 15:44:25 +0000 (21:14 +0530)]
Modify video template to accomodate multiple resolutions
Add required JS/CSS plugin files.
Add JS file to fire up the plugin.
Modify video tag accordingly.
vijeth-aradhya [Sun, 16 Jul 2017 15:13:08 +0000 (20:43 +0530)]
Add get_all_media() in MediaEntryMixin
Returns all available qualties of a media with it's dimensions and
resolution label.
vijeth-aradhya [Fri, 30 Jun 2017 22:36:02 +0000 (04:06 +0530)]
Add property to media_fetch_order
Due to configurable resolution settings, this change is necessary to set the
default resolution and the others.
vijeth-aradhya [Mon, 26 Jun 2017 19:34:55 +0000 (01:04 +0530)]
Fix test_accepted_resolutions
Add {'webm': (640, 640)}
Boris Bobrov [Mon, 26 Jun 2017 18:32:56 +0000 (21:32 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
vijeth-aradhya [Sun, 25 Jun 2017 14:53:37 +0000 (20:23 +0530)]
Implement copy_original and _keep_best
_keep_best is changed to keep_best now, and is added in processing_cleanup.
webm is added to ACCEPTED_RESOLUTIONS.
vijeth-aradhya [Sun, 25 Jun 2017 14:02:28 +0000 (19:32 +0530)]
Test whether video is transcoded to all resolutions
After `self.check_normal_upload`, query the database and
check whether the video got transcoded to all the required
resolutions.
vijeth-aradhya [Sun, 25 Jun 2017 13:17:04 +0000 (18:47 +0530)]
Test accepted_files and accepted_resolutions
vijeth-aradhya [Sun, 25 Jun 2017 12:55:48 +0000 (18:25 +0530)]
Add test_chord for TestSubmissionVideo
Testing the arguments passed to celery.chord when
a video is submitted.
vijeth-aradhya [Sat, 24 Jun 2017 17:15:14 +0000 (22:45 +0530)]
Add VideoProcessingManager.workflow() tests
Testing workflow method including its return data.
vijeth-aradhya [Wed, 21 Jun 2017 04:30:56 +0000 (10:00 +0530)]
Use tuple as default return type of workflow()
If None, then schedule the old Celery call, else the format
is group and a single task in the tuple. Hence, Celery chord would
be ideal to use.
Closes #4
vijeth-aradhya [Tue, 20 Jun 2017 11:58:34 +0000 (17:28 +0530)]
Add choice of video resolutions for instance owner
The instance owner can choose from the list of available resolutions.
['144p', '240p', '360p', '480p', '720p', '1080p']
Also, the default resolution is now set to 480p and the instance owner
can choose the default resolution from that list as well.
Andrew Browning [Mon, 19 Jun 2017 04:58:21 +0000 (00:58 -0400)]
Apply button_warning style to blog delete buttons