diff --git a/tubearchivist/home/config.json b/tubearchivist/home/config.json index edb63560..9ffe3769 100644 --- a/tubearchivist/home/config.json +++ b/tubearchivist/home/config.json @@ -26,6 +26,7 @@ "subtitle": false, "subtitle_source": false, "subtitle_index": false, + "cookie_import": false, "throttledratelimit": false, "integrate_ryd": false, "integrate_sponsorblock": false diff --git a/tubearchivist/home/src/frontend/forms.py b/tubearchivist/home/src/frontend/forms.py index 1a25e6a2..900df878 100644 --- a/tubearchivist/home/src/frontend/forms.py +++ b/tubearchivist/home/src/frontend/forms.py @@ -86,6 +86,12 @@ class ApplicationSettingsForm(forms.Form): ("1", "enable subtitle index"), ] + COOKIE_IMPORT_CHOICES = [ + ("", "-- change cookie settings"), + ("0", "disable cookie"), + ("1", "enable cookie"), + ] + subscriptions_channel_size = forms.IntegerField(required=False) downloads_limit_count = forms.IntegerField(required=False) downloads_limit_speed = forms.IntegerField(required=False) @@ -106,6 +112,9 @@ class ApplicationSettingsForm(forms.Form): downloads_subtitle_index = forms.ChoiceField( widget=forms.Select, choices=SUBTITLE_INDEX_CHOICES, required=False ) + downloads_cookie_import = forms.ChoiceField( + widget=forms.Select, choices=COOKIE_IMPORT_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 0ff1516c..522e4886 100644 --- a/tubearchivist/home/templates/home/settings.html +++ b/tubearchivist/home/templates/home/settings.html @@ -114,6 +114,14 @@ {{ app_form.downloads_subtitle_index }} +
+

Cookie

+
+

Import YouTube cookie: {{ config.downloads.cookie_import }}

+ Place your cookie file named cookies.google.txt in /cache/import before enabling.
+ {{ app_form.downloads_cookie_import }} +
+

Integrations