12 lines
244 B
Bash
12 lines
244 B
Bash
|
#!/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
|