diff --git a/package.json b/package.json index 54fd50c..86a042d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lucida", - "version": "2.0.0-41", + "version": "2.0.0-42", "description": "A modular music downloader tool", "main": "build/index.js", "type": "module", diff --git a/scripts/spotify-get-stored-creds.js b/scripts/spotify-get-stored-creds.js index 850ed6a..a46a825 100644 --- a/scripts/spotify-get-stored-creds.js +++ b/scripts/spotify-get-stored-creds.js @@ -1,6 +1,6 @@ import Spotify from './../build/streamers/spotify/main.js' -const client = new Spotify({}) +const client = new Spotify({ clientId: '9a8d2f0ce77a4e248bb71fefcb557637' }) await client.login(process.env.SPOTIFY_USERNAME, process.env.SPOTIFY_PASSWORD) const storedCreds = client.getStoredCredentials() diff --git a/src/streamers/spotify/parse.ts b/src/streamers/spotify/parse.ts index 421ce40..398434e 100644 --- a/src/streamers/spotify/parse.ts +++ b/src/streamers/spotify/parse.ts @@ -99,7 +99,8 @@ export function parsePlaylist(raw: SpotifyPlaylist) { id: raw.id, title: raw.name, url: raw.externalUrl, - trackCount: raw.totalTracks + trackCount: raw.totalTracks, + coverArtwork: parseThumbnails(raw.coverArtwork) } return playlist