From 239f508668beeaf3ec7ad4afd3ba442e32d2e0c5 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 22 Oct 2022 15:20:17 +0200 Subject: [PATCH] Determine date based on original_release_date instead of physical_release_date (falls back to physical_release_date) --- deemix/types/Album.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/types/Album.js b/deemix/types/Album.js index 21069a3..8b0c312 100644 --- a/deemix/types/Album.js +++ b/deemix/types/Album.js @@ -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)