diff --git a/tubearchivist/home/config.json b/tubearchivist/home/config.json
index 82c76f4..8c4249a 100644
--- a/tubearchivist/home/config.json
+++ b/tubearchivist/home/config.json
@@ -23,6 +23,8 @@
"format": false,
"add_metadata": false,
"add_thumbnail": false,
+ "subtitle": false,
+ "subtitle_source": false,
"throttledratelimit": false,
"integrate_ryd": false
},
diff --git a/tubearchivist/home/src/frontend/forms.py b/tubearchivist/home/src/frontend/forms.py
index 86b1884..77648cf 100644
--- a/tubearchivist/home/src/frontend/forms.py
+++ b/tubearchivist/home/src/frontend/forms.py
@@ -68,6 +68,12 @@ class ApplicationSettingsForm(forms.Form):
("1", "enable Cast"),
]
+ SUBTITLE_SOURCE_CHOICES = [
+ ("", "-- change subtitle source settings"),
+ ("auto", "also download auto generated"),
+ ("user", "only download uploader"),
+ ]
+
subscriptions_channel_size = forms.IntegerField(required=False)
downloads_limit_count = forms.IntegerField(required=False)
downloads_limit_speed = forms.IntegerField(required=False)
@@ -81,6 +87,10 @@ class ApplicationSettingsForm(forms.Form):
downloads_add_thumbnail = forms.ChoiceField(
widget=forms.Select, choices=THUMBNAIL_CHOICES, required=False
)
+ downloads_subtitle = forms.CharField(required=False)
+ downloads_subtitle_source = forms.ChoiceField(
+ widget=forms.Select, choices=SUBTITLE_SOURCE_CHOICES, required=False
+ )
downloads_integrate_ryd = forms.ChoiceField(
widget=forms.Select, choices=RYD_CHOICES, required=False
)
diff --git a/tubearchivist/home/templates/home/settings.html b/tubearchivist/home/templates/home/settings.html
index 0716d3e..3b9ffe9 100644
--- a/tubearchivist/home/templates/home/settings.html
+++ b/tubearchivist/home/templates/home/settings.html
@@ -94,6 +94,17 @@
Embed thumbnail into the mediafile.
{{ app_form.downloads_add_thumbnail }}
+
Subtitles download setting: {{ config.downloads.subtitle }}
+ Choose which subtitles to download, add comma separated two letter language ISO code,
+ e.g. en, de
+ {{ app_form.downloads_subtitle }}
Subtitle source settings: {{ config.downloads.subtitle_source }}
+ Download only user generated, or also less accurate auto generated subtitles.