diff --git a/client/pages/item/_id/index.vue b/client/pages/item/_id/index.vue
index 94e6f0e1..5d813fad 100644
--- a/client/pages/item/_id/index.vue
+++ b/client/pages/item/_id/index.vue
@@ -80,7 +80,7 @@
- Track #
+ Track
{{ musicTrackPretty }}
@@ -88,7 +88,7 @@
- Disc #
+ Disc
{{ musicDiscPretty }}
diff --git a/server/objects/metadata/MusicMetadata.js b/server/objects/metadata/MusicMetadata.js
index b0202c6b..7da47314 100644
--- a/server/objects/metadata/MusicMetadata.js
+++ b/server/objects/metadata/MusicMetadata.js
@@ -290,14 +290,15 @@ class MusicMetadata {
// Metadata is only mapped to the music track if it is empty
MetadataMapArray.forEach((mapping) => {
let value = audioFileMetaTags[mapping.tag]
+
// let tagToUse = mapping.tag
if (!value && mapping.altTag) {
value = audioFileMetaTags[mapping.altTag]
// tagToUse = mapping.altTag
}
- if (value && typeof value === 'string') {
- value = value.trim() // Trim whitespace
+ if (value && (typeof value === 'string' || typeof value === 'number')) {
+ value = value.toString().trim() // Trim whitespace
if (mapping.key === 'artists' && (!this.artists.length || overrideExistingDetails)) {
updatePayload.artists = this.parseArtistsTag(value)