Skip to content

Commit f74dfbf

Browse files
committed
fix: remove unused variable that was crashing if playlist cover didn't exist
1 parent cda42e3 commit f74dfbf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "daunroda",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"license": "MIT",
55
"description": "A simple yet efficient Spotify to YouTube Music Downloader",
66
"author": "Alex Kovacs ([email protected])",

src/lib/Spotify.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ export class Spotify {
3838
if (!playlist) continue;
3939
const { name } = playlist.body;
4040
const { description } = playlist.body;
41-
const image = playlist.body.images[0].url;
4241
const url = playlist.body.external_urls.spotify;
4342

4443
const songs = await this.getSpotifyTracks(id);
45-
processed.push({ id, name, description, image, songs, url });
44+
processed.push({ id, name, description, songs, url });
4645
}
4746

4847
return processed;
@@ -75,7 +74,6 @@ export interface Processed {
7574
id: string;
7675
name: string;
7776
description: string | null;
78-
image: string;
7977
songs: PlaylistObject[];
8078
url: string;
8179
}

0 commit comments

Comments
 (0)