add fallback channel overwrite fallback to frontend

This commit is contained in:
simon 2022-03-15 17:45:43 +07:00
parent 544d842a4a
commit dc67293052
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -61,9 +61,19 @@
<div class="info-box-item"> <div class="info-box-item">
<form action="/channel/{{ channel_info.channel_id }}/" method="POST"> <form action="/channel/{{ channel_info.channel_id }}/" method="POST">
{% csrf_token %} {% csrf_token %}
<p>Download format</p> <p>Download format: <span class="settings-current">
{% if channel_info.channel_overwrites.download_format %}
{{ channel_info.channel_overwrites.download_format }}
{% else %}
False
{% endif %}</span></p>
{{ channel_overwrite_form.download_format }}<br> {{ channel_overwrite_form.download_format }}<br>
<p>Auto delete videos after x days</p> <p>Auto delete videos after x days: <span class="settings-current">
{% if channel_info.channel_overwrites.autodelete_days %}
{{ channel_info.channel_overwrites.autodelete_days }}
{% else %}
False
{% endif %}</span></p>
{{ channel_overwrite_form.autodelete_days }}<br> {{ channel_overwrite_form.autodelete_days }}<br>
<button type="submit">Save</button> <button type="submit">Save</button>
</form> </form>