qutebrowser: Fix ytdl link downloading

Fixed the download media (`<leader>dm`) option in qutebrowser to
download the link that is hinted and not the current page.

To download the current page, the keymapping remains the same as before
(`<leader>dM`).
This commit is contained in:
Marty Oehme 2020-09-18 13:10:37 +02:00
parent 1e3ce1dec7
commit 441cd2ba36
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -103,7 +103,7 @@ config.bind(leader + "m", "hint links spawn umpv {hint-url}")
config.bind(leader + "dM", "spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}") config.bind(leader + "dM", "spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}")
config.bind( config.bind(
leader + "dm", leader + "dm",
"hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}", "hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {hint-url}",
) )
# Use q for quitting a tab (mimicks vim buffer) - qa is used for exiting # Use q for quitting a tab (mimicks vim buffer) - qa is used for exiting