From cc97f93e6598b7551f673fadba913947ca977e07 Mon Sep 17 00:00:00 2001 From: felixmielcarek Date: Sat, 13 Apr 2024 12:40:51 +0200 Subject: [PATCH] Add EP handling --- script/big-brother.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/big-brother.js b/script/big-brother.js index 24bcbff..5978ed4 100644 --- a/script/big-brother.js +++ b/script/big-brother.js @@ -27,7 +27,7 @@ async function getOffsetSavedTracks(href=`https://api.spotify.com/v1/me/tracks?o try { const response = await axios.get(href, { headers: { 'Authorization': 'Bearer ' + accessToken, } }); response.data.items.forEach(t => { - if(t.track.album.album_type !== "single") { + if(t.track.album.total_tracks > 1) { if(!albums[t.track.album.id]) { var albumData = Object.create(albumDataStructure); albumData.savedTracks = [];