Skip to content

Commit

Permalink
add basic ratelimit and outtmpl parameters support in global config
Browse files Browse the repository at this point in the history
- fix remove-task button width
  • Loading branch information
zaharcelac committed Feb 25, 2021
1 parent 8d3871b commit 75d296b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion example_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 2 additions & 0 deletions youtube_dl_webui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion youtube_dl_webui/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
<div slot="footer">
<button class="modal-default-button" @click="showModal = false">cancel</button>
<button class="modal-default-button" @click="removeData" style="width:auto;">remove with data</button>
<button class="modal-default-button" @click="removeTask">remove task</button>
<button class="modal-default-button" @click="removeTask" style="width:auto;">remove task</button>
</div>
</template>
<template v-if="modalType === 'addTask'">
Expand Down

0 comments on commit 75d296b

Please sign in to comment.