youtube-dl continues to amaze
This commit is contained in:
parent
4723ffe5a7
commit
dbb832756e
|
@ -7,8 +7,9 @@ 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'`
|
||||||
|
entries=`echo "$playlistJSON" | jq -r '.entries[] | .url + " " + .title'`
|
||||||
|
|
||||||
if [ "$uploader" = "null" ]; then
|
if [ "$entries" = "null" ] || [ "$entries" = "" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -21,7 +22,7 @@ echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||||
<description><![CDATA[ $uploader ]]></description>
|
<description><![CDATA[ $uploader ]]></description>
|
||||||
"
|
"
|
||||||
|
|
||||||
entries=`echo "$playlistJSON" | jq -r '.entries[] | .url + " " + .title'`
|
|
||||||
|
|
||||||
pubdate=`date --rfc-email`
|
pubdate=`date --rfc-email`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user