only prints wrong channel format if some channels present
This commit is contained in:
parent
2db011e693
commit
917e70f855
@ -33,7 +33,7 @@ echo "Scanning for new Videos to download"
|
|||||||
echo "Scanning on Youtube:"
|
echo "Scanning on Youtube:"
|
||||||
IDs="$( grep 'youtube' "$CHANNELSFILE" | grep -v '^#' | grep 'channel' | sed 's/https:\/\/www\.youtube\.com\/channel\///')"
|
IDs="$( grep 'youtube' "$CHANNELSFILE" | grep -v '^#' | grep 'channel' | sed 's/https:\/\/www\.youtube\.com\/channel\///')"
|
||||||
not_correctly_formatted="$(grep 'youtube' "$CHANNELSFILE" | grep -v '^#' | grep -v 'channel')"
|
not_correctly_formatted="$(grep 'youtube' "$CHANNELSFILE" | grep -v '^#' | grep -v 'channel')"
|
||||||
if [ "$( echo "$not_correctly_formatted" | wc -l )" -gt 0 ]; then
|
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"
|
echo "$not_correctly_formatted"
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user