diff --git a/youtube-rss b/youtube-rss index 9ed7aec..5424a0f 100755 --- a/youtube-rss +++ b/youtube-rss @@ -8,6 +8,9 @@ noItems="$2" playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` 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'` if [ "$entries" = "null" ] || [ "$entries" = "" ]; then