Skip to content

Commit

Permalink
Remove starred playlist from export all
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonbox committed Nov 6, 2020
1 parent 746c6d8 commit 7fcc92e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions exportify.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,9 @@ var PlaylistsExporter = {
window.Helpers.apiCall("https://api.spotify.com/v1/me", access_token).then(function(response) {
var limit = 20;
var userId = response.id;
var requests = [];

// Initialize requests with starred playlist
var requests = [
window.Helpers.apiCall(
"https://api.spotify.com/v1/users/" + userId + "/starred",
access_token
)
];

// Add other playlists
// Add playlists
for (var offset = 0; offset < playlistCount; offset = offset + limit) {
var url = "https://api.spotify.com/v1/users/" + userId + "/playlists";
requests.push(
Expand Down

0 comments on commit 7fcc92e

Please sign in to comment.