From 7b96dea9b948aafba0cda94d6217e88a933d2f9c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 14 Oct 2021 14:43:42 +0200 Subject: [qutebrowser] start mpv with option --ytdl-format=best --- config/qutebrowser/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index fc80eeb..c238076 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -1,8 +1,9 @@ import os # Keybindings -config.bind('x', 'spawn mpv {url}') -config.bind(',x', 'hint links spawn mpv {hint-url}') +mpv_cmd = 'mpv --ytdl-format=best[height<=1080]' +config.bind('x', f'spawn {mpv_cmd} {{url}}') +config.bind(',x', f'hint links spawn {mpv_cmd} {{hint-url}}') config.bind('', 'spawn --userscript password_fill') -- cgit v1.2.3