mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-09 13:07:25 -05:00
add coverartwork to playlists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user