diff --git a/mb_qol_inline_recording_tracks.user.js b/mb_qol_inline_recording_tracks.user.js
index 358eef0e..1464f704 100644
--- a/mb_qol_inline_recording_tracks.user.js
+++ b/mb_qol_inline_recording_tracks.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name MB: QoL: Inline all recording's tracks on releases
-// @version 2024.5.3
+// @version 2024.5.8
// @description Display all tracks and releases on which a recording appears from the release page.
// @author ROpdebee
// @license MIT; https://opensource.org/licenses/MIT
@@ -61,19 +61,19 @@ async function loadRecordingInfo(rids) {
return perRecId;
}
-function getTrackIndex(track, mediumPosition) {
- return `#${mediumPosition}.${track.number}`;
+function getTrackIndex(track, mediumPosition, mediumTrackCount) {
+ return `#${mediumPosition}.${track.number}`;
}
function getTrackIndices(media) {
return media.flatMap((medium) =>
- medium.track.map((track) => getTrackIndex(track, medium.position)))
+ medium.track.map((track) => getTrackIndex(track, medium.position, medium['track-count'])))
.join(', ');
}
function getReleaseName(release) {
- let releaseComment = release.disambiguation || "";
- return `${release.title}` + (releaseComment ? ` ` : '');
+ let releaseComment = release.disambiguation || '';
+ return `${release.title}` + (releaseComment ? ` ` : '');
}
function formatRow(release) {