repeat youtube playlist extraction once on error
This commit is contained in:
parent
8c6b815d32
commit
5d5b66a1cd
|
@ -8,9 +8,13 @@ set -e
|
|||
playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"`
|
||||
uploader=`echo "$playlistJSON" | jq -r '.uploader'`
|
||||
|
||||
if [ "$uploader" = "null" ]; then
|
||||
playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"`
|
||||
uploader=`echo "$playlistJSON" | jq -r '.uploader'`
|
||||
if [ "$uploader" = "null" ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user