[mpv] Add quality limit to browser streams
Sending links to mpv limits the quality to 1080p, to be able to stream it with my connection, and since I can not display more.
This commit is contained in:
parent
5837303c96
commit
1362ace842
1 changed files with 3 additions and 2 deletions
|
|
@ -91,8 +91,9 @@ 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
|
||||
config.bind(leader + 'M', 'spawn umpv {url}')
|
||||
config.bind(leader + 'm', 'hint links spawn umpv {hint-url}')
|
||||
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}')
|
||||
# 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}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue