From 67a2281b9d7a59ad6cf36092f4237254caf8a353 Mon Sep 17 00:00:00 2001 From: deeplydrumming Date: Wed, 7 Aug 2024 18:25:07 +0100 Subject: [PATCH] fix for empty playlists and changes in About and Settings --- deemix/deemix/plugins/spotify.js | 3 ++- webui/src/components/pages/About.vue | 8 +++++--- webui/src/components/pages/Home.vue | 2 +- webui/src/components/pages/Settings.vue | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/deemix/deemix/plugins/spotify.js b/deemix/deemix/plugins/spotify.js index 86e53e8..2fe4412 100644 --- a/deemix/deemix/plugins/spotify.js +++ b/deemix/deemix/plugins/spotify.js @@ -312,7 +312,8 @@ class Spotify extends Plugin { _convertPlaylistStructure (spotifyPlaylist) { let cover = null - if (spotifyPlaylist.images.length) cover = spotifyPlaylist.images[0].url + // Mickey: some playlists can be faulty, for example https://open.spotify.com/playlist/7vyEjAGrXOIjqlC8pZRupW + if (spotifyPlaylist?.images?.length) cover = spotifyPlaylist.images[0].url const deezerPlaylist = { checksum: spotifyPlaylist.snapshot_id, diff --git a/webui/src/components/pages/About.vue b/webui/src/components/pages/About.vue index df95b8d..54bb4a8 100644 --- a/webui/src/components/pages/About.vue +++ b/webui/src/components/pages/About.vue @@ -37,11 +37,13 @@

Changelog