mirror of https://github.com/meeb/tubesync
Show filter seconds in source view
parent
d1de11d647
commit
e0a2187566
|
@ -31,7 +31,7 @@ class Migration(migrations.Migration):
|
||||||
model_name='source',
|
model_name='source',
|
||||||
name='filter_seconds_min',
|
name='filter_seconds_min',
|
||||||
field=models.BooleanField(
|
field=models.BooleanField(
|
||||||
verbose_name='filter seconds min',
|
verbose_name='filter seconds min/max',
|
||||||
choices=[(True, 'Minimum Length'),(False, 'Maximum Length')],
|
choices=[(True, 'Minimum Length'),(False, 'Maximum Length')],
|
||||||
default=True,
|
default=True,
|
||||||
help_text='When Filter Seconds is > 0, do we skip on minimum (video shorter than limit) or maximum ('
|
help_text='When Filter Seconds is > 0, do we skip on minimum (video shorter than limit) or maximum ('
|
||||||
|
@ -39,3 +39,4 @@ class Migration(migrations.Migration):
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,13 @@
|
||||||
<td class="hide-on-small-only">Filter text</td>
|
<td class="hide-on-small-only">Filter text</td>
|
||||||
<td><span class="hide-on-med-and-up">Filter text<br></span><strong>{{ source.filter_text }}</strong></td>
|
<td><span class="hide-on-med-and-up">Filter text<br></span><strong>{{ source.filter_text }}</strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% if source.filter_seconds %}
|
||||||
|
<tr title="Do not download videos shorter/longer than this limit seconds">
|
||||||
|
<td class="hide-on-small-only">Filter Seconds</td>
|
||||||
|
<td><span class="hide-on-med-and-up">Filter seconds<br>
|
||||||
|
</span><strong>{{ source.filter_seconds }}s {% if source.filter_seconds_min %}(Minimum length){% else %}(Maximum Length){% endif %}</strong></td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
<tr title="Media file name format to use for saving files">
|
<tr title="Media file name format to use for saving files">
|
||||||
<td class="hide-on-small-only">Media format</td>
|
<td class="hide-on-small-only">Media format</td>
|
||||||
<td><span class="hide-on-med-and-up">Media format<br></span><strong>{{ source.media_format }}</strong></td>
|
<td><span class="hide-on-med-and-up">Media format<br></span><strong>{{ source.media_format }}</strong></td>
|
||||||
|
|
Loading…
Reference in New Issue