From 0f224c6f8b0fb84c0e14c077019e2ace12874163 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 23 Jul 2021 14:29:50 +0200 Subject: Updated qutebrowser to only play 480p 30fps video --- config/qutebrowser/config.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 16df617..578cf09 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -60,8 +60,16 @@ c.editor.command = [ c.messages.timeout = 4000 -config.bind(';v', 'hint links spawn /usr/bin/mpv --ytdl-format=best {hint-url} ;;' - 'message-info "opening in video player"') +config.bind( + ';v', + """ + hint links spawn + /usr/bin/mpv + --ytdl-format="bestvideo[height<=480][fps<=30]+bestaudio/best[height<=480][fps<=30]" + {hint-url} ;; + message-info "opening in video player" + """.replace('\n', ' ') +) config.bind('', 'completion-item-focus next', 'command') config.bind('', 'completion-item-focus prev', 'command') -- cgit