From dbb832756e05e346666f45f6bb72deda6d01d2a2 Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 12 Nov 2020 08:02:48 +0100 Subject: [PATCH] youtube-dl continues to amaze --- youtube-rss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube-rss b/youtube-rss index afdd0f3..523bf45 100755 --- a/youtube-rss +++ b/youtube-rss @@ -7,8 +7,9 @@ set -e playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` uploader=`echo "$playlistJSON" | jq -r '.uploader'` +entries=`echo "$playlistJSON" | jq -r '.entries[] | .url + " " + .title'` -if [ "$uploader" = "null" ]; then +if [ "$entries" = "null" ] || [ "$entries" = "" ]; then exit 1 fi @@ -21,7 +22,7 @@ echo " " -entries=`echo "$playlistJSON" | jq -r '.entries[] | .url + " " + .title'` + pubdate=`date --rfc-email`