summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmyt-not
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-03 19:53:22 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-03 19:53:22 +0100
commit97487ed1431ed0cfa4f5b6facd69dbd0f13911f4 (patch)
treecacc50f96ebb5a9b2a3c8d374bbf9e8ccedc64cf /bin/guiscripts/dmyt-not
parent5522d426e21cbedb8791ee4399ff7d28a4c6f10e (diff)
renamed dmscripts to guiscripts
Diffstat (limited to 'bin/guiscripts/dmyt-not')
-rwxr-xr-xbin/guiscripts/dmyt-not6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/guiscripts/dmyt-not b/bin/guiscripts/dmyt-not
new file mode 100755
index 0000000..4783a8d
--- /dev/null
+++ b/bin/guiscripts/dmyt-not
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+# Open a video from channels.yt-not by selecting the channel
+channel="$(awk '{print $2}' ~/.local/share/yt-not/channels.yt-not | dmenu -l 2 -g 4)"
+video_id="$(awk "/$channel/ {print \$3}" ~/.local/share/yt-not/channels.yt-not )"
+video="https://youtube.com/watch?v=${video_id}"
+mpv $video