youtube-rss: limit to 20 items

This commit is contained in:
gutmet 2020-10-31 18:28:22 +01:00
parent 04b2a2716e
commit 3de291e23c

View File

@ -1,8 +1,9 @@
#!/bin/bash
playlistURL="$1"
noItems="20"
playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J`
playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"`
uploader=`echo "$playlistJSON" | jq -r '.uploader'`
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>