File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ export const updatePlaylist = async (data: any) => {
135
135
description = "An epic playlist created by you." ;
136
136
}
137
137
138
- if ( data . coverArt ) {
139
- cover = data . data . coverArt ;
138
+ if ( data . cover ) {
139
+ cover = data . data . cover ;
140
140
} else {
141
- cover = "/coverArt .png" ;
141
+ cover = "/cover .png" ;
142
142
}
143
143
144
144
const playlist = await db
@@ -361,13 +361,13 @@ export const initializeData = async (musicFolder: string) => {
361
361
metadata . common . artist ||
362
362
"Various Artists" ,
363
363
year : metadata . common . year ,
364
- coverArt : artPath ,
364
+ cover : artPath ,
365
365
} )
366
366
. returning ( ) ;
367
367
368
368
album = newAlbum ;
369
369
} else {
370
- // @hiaaryan : Update Album if Artist or CoverArt is different
370
+ // @hiaaryan : Update Album if Artist or Cover is different
371
371
if (
372
372
album . artist !==
373
373
( metadata . common . albumartist || metadata . common . artist ) ||
You can’t perform that action at this time.
0 commit comments