Browse code

add limit to single playlist

Blackbeard authored on 2018-09-09 19:13:57
Showing 1 changed files
... ...
@@ -31,7 +31,7 @@ function output_playlists_url {
31 31
         # returns user id or jamendo id
32 32
         local USER_ID=$(return_valid_number "$1" 5276149)
33 33
         # returns limit or 20
34
-        local LIMIT=$(return_valid_number "$2" 20)
34
+        local LIMIT=$(return_valid_number "$2" 100)
35 35
 	# eliminate &datebetween - not really necessary 
36 36
  	local URL="https://api.jamendo.com/v3.0/playlists/?client_id=73efbf98&format=jsonpretty&datebetween=2006-06-01_2020-02-01&order=creationdate_desc&limit=$LIMIT&user_id=$USER_ID"
37 37
     echo "$URL"
... ...
@@ -90,8 +90,9 @@ function get_pl_id {
90 90
 # Outputs URL of a single playlist
91 91
 # output_1playlist_url 500432775
92 92
 function output_1playlist_url {
93
-        local playlist_id="$1"
94
-    	local URL="https://api.jamendo.com/v3.0/playlists/tracks/?client_id=73efbf98&format=jsonpretty&audioformat=ogg&track_type=single+albumtrack&id=$playlist_id"
93
+    local playlist_id="$1"
94
+    local limit="&limit=all"
95
+    	local URL="https://api.jamendo.com/v3.0/playlists/tracks/?client_id=73efbf98&format=jsonpretty&audioformat=ogg&track_type=single+albumtrack&id=$playlist_id$limit"
95 96
 	echo "$URL"
96 97
 }
97 98