From 13481ab6f27fea1aed3dd025b4549eb05ca7b704 Mon Sep 17 00:00:00 2001 From: ConfiG Date: Thu, 26 Sep 2024 01:00:29 +0300 Subject: [PATCH] use origin_url for song url when available --- src/plugins/lastfm/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lastfm/index.tsx b/src/plugins/lastfm/index.tsx index 7299ecf61..035088edf 100644 --- a/src/plugins/lastfm/index.tsx +++ b/src/plugins/lastfm/index.tsx @@ -307,7 +307,8 @@ export default definePlugin({ name: trackData.track_metadata.track_name, album: trackData.track_metadata.release_name, artist: trackData.track_metadata.artist_name, - url: recordingMbid && `https://musicbrainz.org/recording/${recordingMbid}`, + url: trackData.track_metadata.additional_info.origin_url || + recordingMbid && `https://musicbrainz.org/recording/${recordingMbid}`, imageUrl: releaseMbid && `https://coverartarchive.org/release/${releaseMbid}/front` }; } catch (e) {