mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-28 02:16:08 +00:00
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:
commit
422a1d7a36
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue