Merge pull request #190 from JulienMaille/DribbblishDynamic-fix

FIX for local files #189
This commit is contained in:
morpheusthewhite 2020-10-28 10:21:15 +01:00 committed by GitHub
commit 416041e9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,6 +277,10 @@ async function songchange() {
// podcast?
nearTrackSpan.innerText = ""
nearArtistSpan.innerText = Spicetify.Player.data.track.metadata.album_title
} else if (Spicetify.Player.data.track.metadata.is_local=="true") {
// local?
nearTrackSpan.innerText = ""
nearArtistSpan.innerText = Spicetify.Player.data.track.metadata.album_title
} else {
// When clicking a song from the homepage, songChange is fired with half empty metadata
// todo: retry only once?