summaryrefslogtreecommitdiffstats
path: root/fish/functions/mplayer-yt.fish
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
committerMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
commite4640e28c8449eea66392052bfab57ce0cdd27f9 (patch)
tree2be81b55bc37da60599f4e6d434e74a57694962e /fish/functions/mplayer-yt.fish
first commit
Diffstat (limited to '')
-rw-r--r--fish/functions/mplayer-yt.fish5
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