You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// take the playlist object and return an acceptable filename
173
+
fileName(playlist){
174
+
returnplaylist.name.replace(/[^a-z0-9\-]/gi,'').replace(/[]/gi,'_').toLowerCase();// /.../gi is a Perl-style modifier, g for global, meaning all matches replaced, i for case-insensitive
175
+
},
176
+
172
177
// This is where the magic happens. The access token gives us permission to query this info from Spotify, and the
173
178
// playlist object gives us all the information we need to start asking for songs.
174
179
csvData(access_token,playlist){
@@ -216,7 +221,7 @@ let PlaylistExporter = {
216
221
})
217
222
})
218
223
219
-
// Fetch album details, another wave of traffic, 20 albums at a time max
224
+
// Fetch album details, another wave of traffic, 20 albums at a time max. Happens after genre_promise has finished, to build in delay.
// take the playlist object and return an acceptable filename
278
-
fileName(playlist){
279
-
returnplaylist.name.replace(/[^a-z0-9\-]/gi,'').replace(/[]/gi,'_').toLowerCase();// /.../gi is a Perl-style modifier, g for global, meaning all matches replaced, i for case-insensitive
0 commit comments