Merge branch 'main' into 'main'

Determine date based on original_release_date instead of physical_release_date...

See merge request RemixDev/deemix-js!1
This commit is contained in:
RemixDev 2022-11-22 21:00:06 +00:00
commit 422a1d7a36

View file

@ -88,7 +88,7 @@ class Album {
this.label = albumAPI.label || this.label
this.explicit = Boolean(albumAPI.explicit_lyrics || false)
let release_date = albumAPI.release_date
if (albumAPI.physical_release_date) release_date = albumAPI.physical_release_date
if (albumAPI.original_release_date) release_date = albumAPI.original_release_date
if (release_date){
this.date.year = release_date.slice(0,4)
this.date.month = release_date.slice(5,7)