update youtube-rss to use JSON field 'id' to work with yt-dlp

This commit is contained in:
gutmet 2021-11-25 21:04:48 +01:00
parent 0af85267e2
commit 5c74862ec1

View File

@ -11,7 +11,7 @@ uploader=`echo "$playlistJSON" | jq -r '.uploader'`
if [ "$uploader" = "null" ] || [ "$uploader" = "" ]; then
uploader=`echo "$playlistJSON" | jq -r '.title'`
fi
entries=`echo "$playlistJSON" | jq -r '.entries[] | .url + " " + .title'`
entries=`echo "$playlistJSON" | jq -r '.entries[] | .id + " " + .title'`
if [ "$entries" = "null" ] || [ "$entries" = "" ]; then
exit 1