youtube-rss: exit on error

This commit is contained in:
gutmet 2020-11-01 12:24:45 +01:00
parent f8fe778dc5
commit cbf2a24250

View File

@ -3,6 +3,8 @@
playlistURL="$1" playlistURL="$1"
noItems="$2" noItems="$2"
set -e
playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"`
uploader=`echo "$playlistJSON" | jq -r '.uploader'` uploader=`echo "$playlistJSON" | jq -r '.uploader'`