mirror of
https://git.lucida.su/lucida/verdana.git
synced 2026-08-09 00:18:02 +00:00
add coverartwork to playlists
This commit is contained in:
parent
c9918250c8
commit
359a7e144a
3 changed files with 4 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue