1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

use origin_url for song url when available

This commit is contained in:
ConfiG 2024-09-26 01:00:29 +03:00
parent b986543906
commit 13481ab6f2

View file

@ -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) {