From e08e1da514d6f48d9def9b3fca3f64018875abdd Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 1 Nov 2020 20:38:45 +0100 Subject: [PATCH] youtube-rss: youtube-dl seems to produce faulty data once in a while - fail then --- youtube-rss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube-rss b/youtube-rss index 71b290a..afdd0f3 100755 --- a/youtube-rss +++ b/youtube-rss @@ -8,6 +8,11 @@ set -e playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` uploader=`echo "$playlistJSON" | jq -r '.uploader'` +if [ "$uploader" = "null" ]; then + exit 1 +fi + + echo "