Subtitle interface using attachments

This commit is contained in:
saksham1115 2016-05-29 17:35:24 +00:00
parent 3019306e00
commit 74bc86732e
2 changed files with 5 additions and 1 deletions

View File

@ -81,7 +81,7 @@ celery_setup_elsewhere = boolean(default=False)
# Whether or not users are able to upload files of any filetype with
# their media entries -- This is useful if you want to provide the
# source files for a media file but can also be a HUGE security risk.
allow_attachments = boolean(default=False)
allow_attachments = boolean(default=True)
# Cookie stuff
csrf_cookie_name = string(default='mediagoblin_csrftoken')

View File

@ -60,6 +60,10 @@
{% else %}
type="{{ media.media_manager['default_webm_type'] }}"
{% endif %} />
{%- for attachment in media.attachment_files %}
<track src="{{ request.app.public_store.file_url(attachment.filepath) }}"
label = "{{- attachment.name -}}" kind="subtitles" >
{%- endfor %}
<div class="no_html5">
{%- trans -%}Sorry, this video will not work because
your web browser does not support HTML5