youtube-urls-feed/scripts/get-channel-vids.sh
Eliezer Croitoru 3dd3d30a96 1
2024-08-18 05:14:09 +03:00

12 lines
244 B
Bash
Executable File

#!/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