[mpv] Add low/high quality profiles

Added profiles for lq and hq playback in preparation for battery mode
setting.

Removed qutebrowser forcing ytdl options, since it is set in mpv.conf.
This commit is contained in:
Marty Oehme 2020-05-13 16:50:28 +02:00
parent dd61ca7aa9
commit f5505cbac1
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
2 changed files with 16 additions and 4 deletions

View file

@ -91,9 +91,8 @@ config.bind(leader + 'tV', 'set tabs.position left')
# [M]edia shortcuts - watch, queue, download media
# bind mpv to play the current page/links, using a single instance which queues the next link passed
streamingformat = '--ytdl-format="bestvideo[height<=1080]+bestaudio/best[height<=1080]"'
config.bind(leader + 'M', 'spawn umpv ' + streamingformat + ' {url}')
config.bind(leader + 'm', 'hint links spawn umpv ' + streamingformat + ' {hint-url}')
config.bind(leader + 'M', 'spawn umpv {url}')
config.bind(leader + 'm', 'hint links spawn umpv {hint-url}')
# bind youtube-dl to download the current page/links
config.bind(leader + 'dM', 'spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')
config.bind(leader + 'dm', 'hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}')