youtube-urls-feed/scripts/get-channel-vids.sh

12 lines
244 B
Bash
Raw Normal View History

2024-08-18 05:14:09 +03:00
#!/usr/bin/env bash
CHANNEL_URL="$1"
echo "${CHANNEL_URL}" |grep "^https\:\/\/www\.youtube\.com\/" >/dev/null
if [ "$?" -eq "0" ]
then
yt-dlp -v --flat-playlist --print id "${CHANNEL_URL}"
else
echo "Missing a valid channel URL" >&2
fi