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:
parent
b986543906
commit
13481ab6f2
1 changed files with 2 additions and 1 deletions
|
@ -307,7 +307,8 @@ export default definePlugin({
|
||||||
name: trackData.track_metadata.track_name,
|
name: trackData.track_metadata.track_name,
|
||||||
album: trackData.track_metadata.release_name,
|
album: trackData.track_metadata.release_name,
|
||||||
artist: trackData.track_metadata.artist_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`
|
imageUrl: releaseMbid && `https://coverartarchive.org/release/${releaseMbid}/front`
|
||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue