File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,21 @@ srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
20
20
# shellcheck disable=SC1090,SC1091
21
21
. " $srcdir /lib/utils.sh"
22
22
23
+ playlist=" Discover Backlog"
24
+
23
25
# shellcheck disable=SC2034,SC2154
24
26
usage_description="
25
- Searches for the top 100 tracks for a given artist and adds them to the \" Discover Backlog \" playlist
27
+ Searches for the tracks of a given artist and adds them to the \" $playlist \" playlist
26
28
27
29
Because Spotify's UI is horrible to try to get all the tracks from the discographies and add them to a playlist manually
28
30
29
- To increase the number of tracks:
31
+ By defaults limits to 1000 tracks, which should cover all of the artist's work
32
+
33
+ If you need to change this limit, set:
34
+
35
+ export SPOTIFY_SEARCH_LIMIT=5000
30
36
31
- export SPOTIFY_SEARCH_LIMIT=200
37
+ Expects the \" $playlist \" playlist to already exist
32
38
33
39
Uses adjacent scripts:
34
40
@@ -47,8 +53,8 @@ num_args 1 "$@"
47
53
48
54
artist=" $1 "
49
55
50
- export SPOTIFY_SEARCH_LIMIT=" ${SPOTIFY_SEARCH_LIMIT:- 100 } "
56
+ export SPOTIFY_SEARCH_LIMIT=" ${SPOTIFY_SEARCH_LIMIT:- 1000 } "
51
57
52
58
" $srcdir /spotify_search_uri.sh" artist:" $artist " |
53
59
tee >( " $srcdir /spotify_uri_to_name.sh" ) |
54
- " $srcdir /spotify_add_to_playlist.sh" " Discover Backlog "
60
+ " $srcdir /spotify_add_to_playlist.sh" " $playlist "
You can’t perform that action at this time.
0 commit comments