summaryrefslogtreecommitdiff
path: root/scripts/ytrss
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 13:49:22 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 13:49:22 -0500
commitf8d09c5cfd6d1d9595b64547dc9d29c63e40c5f2 (patch)
tree0dd9cfa47cfa0bd4d57d7789439cc86afbbdfa85 /scripts/ytrss
parent29b1c791f6e319cdab828cee5f491ca1c38e41d1 (diff)
Moved .local/bin to scripts
Diffstat (limited to 'scripts/ytrss')
-rwxr-xr-xscripts/ytrss15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/ytrss b/scripts/ytrss
new file mode 100755
index 0000000..8539b18
--- /dev/null
+++ b/scripts/ytrss
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if test -n "$1";
+then
+ id=$1
+elif test ! -t 0;
+then
+ id=$(cat < /dev/stdin)
+else
+ echo "ytrss: No Input"
+ exit
+fi
+
+echo "https://www.youtube.com/feeds/videos.xml?channel_id="$id
+