youtube-rss: make number of playlist items an argument

This commit is contained in:
gutmet 2020-10-31 19:04:21 +01:00
parent 3de291e23c
commit f8fe778dc5

View File

@ -1,7 +1,7 @@
#!/bin/bash
playlistURL="$1"
noItems="20"
noItems="$2"
playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"`
uploader=`echo "$playlistJSON" | jq -r '.uploader'`