neon-jungle / wagtail-videos

Videos for Wagtail CMS, including transcoding
BSD 3-Clause "New" or "Revised" License
65 stars 57 forks source link

The size of the uploaded video #103

Closed eeyy closed 1 year ago

eeyy commented 1 year ago

Hello, can I change the parameter to the size of the video? By default there is 1 GB

seb-b commented 1 year ago

Yep, adjusting the WAGTAILVIDEOS_MAX_UPLOAD_SIZE setting can fix this. Ideally this should be documented somewhere. The default is 1GB. e.g.

WAGTAILVIDEOS_MAX_UPLOAD_SIZE = (1024 * 1024 * 1024) * 2 # 2GB

https://github.com/neon-jungle/wagtailvideos/blob/28371ee754851f1780029e8f536c528915344aef/wagtailvideos/fields.py#L13

eeyy commented 1 year ago

Thank you for the answer, you helped a lot. And tell me how to make the language change, I changed it on the whole site using LANGUAGE_CODE in the settings, but the text from your library has not changed

seb-b commented 1 year ago

we don't have translations for this app unfortunately. If you'd like to open a pull request to add a translation you're more than welcome. Here's a similar PR where someone added french translation to a different app of ours: https://github.com/neon-jungle/wagtail-birdsong/pull/30/

eeyy commented 1 year ago

OK, I'll do it

eeyy commented 1 year ago

I have created a marge request, please check it

eeyy commented 1 year ago

Is there something wrong with my edits, should I fix something?

seb-b commented 1 year ago

No everything looks good, I'll hopefully get a chance to merge and do a release by the end of the week, apologies for the delay!

eeyy commented 1 year ago

Thanks!