{% extends 'safety/settings/settings.html' %} {% block toolbar_youtube %}class="active"{%endblock%} {% block settings_content %}

In order to be able to filter YouTube by video, channel or category the following settings need to be specified. For more information, see Administrator's Guide.

{% if form.non_field_errors %}
{% for error in form.non_field_errors %}{{ error|escape }}{% endfor %}
{% endif %}
{% csrf_token %}
{{form.api_key}} {% if form.api_key.errors %} {{form.api_key.errors|striptags}} {% else %} YouTube Data API unique key from https://developers.google.com/youtube/v3/getting-started. Required. {%endif%}
{{form.daemon_port}}
{% if form.daemon_port.errors %} {{form.daemon_port.errors|striptags}} {% else %} Specify the port that Web Safety YouTube Guard daemon (wsytgd) is listening on. Default value is 18891. {%endif%}
{{form.cache_expiration}}
{% if form.cache_clean.errors %} {{form.cache_expiration.errors|striptags}} {% else %} Maximum number of seconds to cache video, category and channel lookup results. Default value is 432000 seconds (5 days). It is recommended to keep this number rather high as video ids, categories and channels are seldom changed. {%endif%}
{% endblock %}