Skip to content

Commit

Permalink
made title line all one line of code to try to fix offset-by-4 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkomarov committed Dec 3, 2024
1 parent 7fbe761 commit 165725b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exportify.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ let PlaylistExporter = {
features = features.flat() // get rid of the batch dimension (only 100 songs per call)
data.forEach((row, i) => features[i]?.forEach(feat => row.push(feat)))
// make a string
let csv = "Track ID,Track Name,Album Name,Artist Name(s),Release Date,Duration (ms),Popularity,Added By,Added At,Genres,Record Label,\
Danceability,Energy,Key,Loudness,Mode,Speechiness,Acousticness,Instrumentalness,Liveness,Valence,Tempo,Time Signature\n"
let csv = "Track ID,Track Name,Album Name,Artist Name(s),Release Date,Duration (ms),Popularity,Added By,Added At,Genres,Record Label,Danceability,Energy,Key,Loudness,Mode,Speechiness,Acousticness,Instrumentalness,Liveness,Valence,Tempo,Time Signature\n"
data.forEach(row => { csv += row.join(",") + "\n" })
return csv
})
Expand Down

0 comments on commit 165725b

Please sign in to comment.