From f8fe778dc584b124cdb9ac60ec1984e665e309ed Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 31 Oct 2020 19:04:21 +0100 Subject: [PATCH] youtube-rss: make number of playlist items an argument --- youtube-rss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-rss b/youtube-rss index ca421ec..aa76540 100755 --- a/youtube-rss +++ b/youtube-rss @@ -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'`