fixed typos
This commit is contained in:
parent
c315f9c021
commit
a8a6cc347e
4
ripper
4
ripper
@ -52,12 +52,12 @@ if [ -n "$not_correctly_formatted" ]; then
|
|||||||
echo Please fix the following channel urls to be scannable:
|
echo Please fix the following channel urls to be scannable:
|
||||||
echo "$not_correctly_formatted" | while read -r line; do
|
echo "$not_correctly_formatted" | while read -r line; do
|
||||||
printf 'Given URI:\t%s\n' "$line"
|
printf 'Given URI:\t%s\n' "$line"
|
||||||
printf 'Potentiall correct channel URI:\n\thttps://youtube.com/channel/%s\n' "$(curl "$line" -s | grep -Eo 'externalId":"[^"]*"' | sed 's|^externalId":"||; s|"||g')"
|
printf 'Potentially correct channel URI:\n\thttps://www.youtube.com/channel/%s\n' "$(curl "$line" -s | grep -Eo 'externalId":"[^"]*"' | sed 's|^externalId":"||; s|"||g')"
|
||||||
done
|
done
|
||||||
echo "They need to be in the 'https://www.youtube.com/channel/...' format"
|
echo "They need to be in the 'https://www.youtube.com/channel/...' format"
|
||||||
fi
|
fi
|
||||||
for channel_id in $IDs; do
|
for channel_id in $IDs; do
|
||||||
echo "ID: $channel_id"
|
echo "YT-ID: $channel_id"
|
||||||
if [ -z "$LEGACYMODE" ]; then
|
if [ -z "$LEGACYMODE" ]; then
|
||||||
json="$(curl -s "https://www.googleapis.com/youtube/v3/search?key=$APIKEY&channelId=$channel_id&part=snippet,id&order=date&maxResults=500")"
|
json="$(curl -s "https://www.googleapis.com/youtube/v3/search?key=$APIKEY&channelId=$channel_id&part=snippet,id&order=date&maxResults=500")"
|
||||||
#Fallback to legacy mode if API quota is exceeded
|
#Fallback to legacy mode if API quota is exceeded
|
||||||
|
Loading…
Reference in New Issue
Block a user