summaryrefslogtreecommitdiffstats
path: root/.local/bin/mpv-view.pl
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-17 18:49:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-17 18:49:12 +0200
commit6847b6208a99169193958888b80022ee3dec88d4 (patch)
treec4ecd289216dc9c96c71b158409608d603521d8f /.local/bin/mpv-view.pl
parentPretty cool script (diff)
downloaddotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.gz
dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.bz2
dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.xz
dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.tar.zst
dotfiles-bsd-6847b6208a99169193958888b80022ee3dec88d4.zip
Newsboat rice
Diffstat (limited to '')
-rwxr-xr-x.local/bin/mpv-view.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/mpv-view.pl b/.local/bin/mpv-view.pl
index 3e17dd7..a66a75b 100755
--- a/.local/bin/mpv-view.pl
+++ b/.local/bin/mpv-view.pl
@@ -53,6 +53,7 @@ sub main
}
$size = get_size();
if ($size != 0) {
+ print 'mpv --ytdl-format=[height<=' . $size . '] ' . $ARGV[0] . "\n";
exec(
'mpv',
'--ytdl-format=[height<=' . $size . ']',
@@ -60,6 +61,7 @@ sub main
);
}
else {
+ print 'mpv ' . $ARGV[0] . "\n";
exec(
'mpv',
$ARGV[0]