summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2025-07-30 22:54:49 -0700
committerkaa <kaa@disroot.org>2025-07-30 22:54:49 -0700
commitaebf259c70f0004c9c418b09284119719da0c935 (patch)
tree83ed8d5f7cb9202955ca161cee4e27e23e915736
parent56ae33460ce53dd1e915ed955409727bb2ec7f8c (diff)
specify videos section of channel pageHEADmaster
-rwxr-xr-xytpoll6
1 files changed, 3 insertions, 3 deletions
diff --git a/ytpoll b/ytpoll
index 3b08016..3e87126 100755
--- a/ytpoll
+++ b/ytpoll
@@ -1,7 +1,7 @@
#!/bin/sh
# Channel URLs separated by spaces
-channels="https://www.youtube.com/channel/UCsvn_Po0SmunchJYOWpOxMg https://www.youtube.com/channel/UCusoqN-C8Bj9LvROvrl7nJA"
+channels="https://www.youtube.com/channel/UCsvn_Po0SmunchJYOWpOxMg/videos https://www.youtube.com/channel/UCusoqN-C8Bj9LvROvrl7nJA/videos"
# 720p60fps av1 codec
vq=398
# Best quality audio opus codec
@@ -47,7 +47,7 @@ check()
{
# Get channel name
channel="$(< $tmp jq -c '.channel' | tr -d \")"
- < $tmp jq -c '.entries[].entries[]' | head -$n | jq -c '(.url, .id)' | paste - - | tr -d \" | while read -r video
+ < $tmp jq -c '.entries[]' | head -$n | jq -c '(.url, .id)' | paste - - | tr -d \" | while read -r video
do
# check without accessing YT if video is downloaded
url=$(echo $video | sed -e 's| .*||')
@@ -66,7 +66,7 @@ do
for channel in $channels
do
- #index $channel
+ index $channel
check
done