add autostart subs to config form
This commit is contained in:
parent
cbcb7484a7
commit
63021bd313
|
@ -44,6 +44,12 @@ class UserSettingsForm(forms.Form):
|
||||||
class ApplicationSettingsForm(forms.Form):
|
class ApplicationSettingsForm(forms.Form):
|
||||||
"""handle all application settings"""
|
"""handle all application settings"""
|
||||||
|
|
||||||
|
AUTOSTART_CHOICES = [
|
||||||
|
("", "-- change subscription autostart --"),
|
||||||
|
("0", "disable auto start"),
|
||||||
|
("1", "enable auto start"),
|
||||||
|
]
|
||||||
|
|
||||||
METADATA_CHOICES = [
|
METADATA_CHOICES = [
|
||||||
("", "-- change metadata embed --"),
|
("", "-- change metadata embed --"),
|
||||||
("0", "don't embed metadata"),
|
("0", "don't embed metadata"),
|
||||||
|
@ -107,6 +113,9 @@ class ApplicationSettingsForm(forms.Form):
|
||||||
subscriptions_shorts_channel_size = forms.IntegerField(
|
subscriptions_shorts_channel_size = forms.IntegerField(
|
||||||
required=False, min_value=0
|
required=False, min_value=0
|
||||||
)
|
)
|
||||||
|
subscriptions_auto_start = forms.ChoiceField(
|
||||||
|
widget=forms.Select, choices=AUTOSTART_CHOICES, required=False
|
||||||
|
)
|
||||||
downloads_limit_speed = forms.IntegerField(required=False)
|
downloads_limit_speed = forms.IntegerField(required=False)
|
||||||
downloads_throttledratelimit = forms.IntegerField(required=False)
|
downloads_throttledratelimit = forms.IntegerField(required=False)
|
||||||
downloads_sleep_interval = forms.IntegerField(required=False)
|
downloads_sleep_interval = forms.IntegerField(required=False)
|
||||||
|
|
|
@ -49,6 +49,11 @@
|
||||||
<i>Shorts Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50.</i><br>
|
<i>Shorts Videos to scan to find new items for the <b>Rescan subscriptions</b> task, max recommended 50.</i><br>
|
||||||
{{ app_form.subscriptions_shorts_channel_size }}
|
{{ app_form.subscriptions_shorts_channel_size }}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="settings-item">
|
||||||
|
<p>Auto start download from your subscriptions: <span class="settings-current">{{ config.subscriptions.auto_start}}</span></p>
|
||||||
|
<i>Enable this will automatically start and prioritize videos from your subscriptions.</i><br>
|
||||||
|
{{ app_form.subscriptions_auto_start }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<h2 id="downloads">Downloads</h2>
|
<h2 id="downloads">Downloads</h2>
|
||||||
|
|
Loading…
Reference in New Issue