youtube-rss: limit to 20 items
This commit is contained in:
parent
04b2a2716e
commit
3de291e23c
|
@ -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\"?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user