diff --git a/example_config.json b/example_config.json index 286c9a0..40b7a66 100644 --- a/example_config.json +++ b/example_config.json @@ -10,6 +10,8 @@ }, "youtube_dl": { "format": "bestaudio/best", - "proxy": "socks5://127.0.0.1:1080" + "proxy": "socks5://127.0.0.1:1080", + "ratelimit": 1097152, + "outtmpl": "%(title)s.%(ext)s" } } diff --git a/youtube_dl_webui/config.py b/youtube_dl_webui/config.py index 2b5a18e..6b4f1ee 100644 --- a/youtube_dl_webui/config.py +++ b/youtube_dl_webui/config.py @@ -51,6 +51,8 @@ class ydl_conf(conf_base): #(key, default_val, type, validate_regex, call_function) ('proxy', None, 'string', None, None), ('format', None, 'string', None, None), + ('ratelimit', 1048576, 'int', None, None), + ('outtmpl', None, 'string', None, None), ] _task_settable_fields = set(['format']) diff --git a/youtube_dl_webui/templates/index.html b/youtube_dl_webui/templates/index.html index e63b3c7..5cdacf7 100644 --- a/youtube_dl_webui/templates/index.html +++ b/youtube_dl_webui/templates/index.html @@ -162,7 +162,7 @@