diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-10-05 16:33:10 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-10-05 16:33:10 +0100 |
commit | 9fff448654308b1e1b3d1129c0255544f56c25cc (patch) | |
tree | eda78717611d7a6b2204ba8e9f73af90e69ae90b /fish/functions/mplayer-yt.fish |
initial
Diffstat (limited to 'fish/functions/mplayer-yt.fish')
-rw-r--r-- | fish/functions/mplayer-yt.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fish/functions/mplayer-yt.fish b/fish/functions/mplayer-yt.fish new file mode 100644 index 0000000..eae137d --- /dev/null +++ b/fish/functions/mplayer-yt.fish @@ -0,0 +1,5 @@ +# Defined in /tmp/fish.ai34DV/mplayer-yt.fish @ line 2 +function mplayer-yt --description 'Play a YouTube video in mplayer' + set url (youtube-dl -g -f 43 --cookies /tmp/cookie-youtube.txt $argv) + mplayer -fs -cookies -cookies-file /tmp/cookie-youtube.txt $url +end |