summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-15 18:30:17 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-15 18:30:17 +0200
commit27614b6ab65d0b17549a33bbffdd20d3b45b44e7 (patch)
treee4163c921c55fc71c755912179e7184ea45763c4 /.local/bin/linkview
parentupdate (diff)
downloaddotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.gz
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.bz2
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.xz
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.zst
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.zip
update
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x.local/bin/linkview9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview
index 7024ade..226e643 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -128,6 +128,15 @@ sub open_link
if ($quality eq 'uncap') {
system(YTDL_PATH . ' --newline --add-metadata ' . $url . ' >' . $tmpfile);
}
+ elsif ($quality eq '1440') {
+ system(YTDL_PATH . " -f '308+140' --newline --add-metadata " . $url . ' >' . $tmpfile);
+ }
+ elsif ($quality eq '1080') {
+ system(YTDL_PATH . " -f '299+140' --newline --add-metadata " . $url . ' >' . $tmpfile);
+ }
+ elsif ($quality eq '720') {
+ system(YTDL_PATH . " -f '298+140' --newline --add-metadata " . $url . ' >' . $tmpfile);
+ }
else {
system(YTDL_PATH . " -f '[height<=" . $quality . "]' --newline --add-metadata " . $url . ' >' . $tmpfile);
}