mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #14851] [MERGED] Fixing the UFID field value giving a warning and not being correctly processed #14150
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/14851
Author: @teblam
Created: 9/24/2025
Status: ✅ Merged
Merged: 9/26/2025
Merged by: @crobibero
Base:
master← Head:development📝 Commits (2)
89a0b65Fixing the UFID field value giving a warning and not being correctly processedbf7bbdbFixing the UFID field value with proper sanitization📊 Changes
1 file changed (+22 additions, -3 deletions)
View changed files
📝
MediaBrowser.Providers/MediaInfo/AudioFileProber.cs(+22 -3)📄 Description
Unlike what is specified by the error message: "Audio file {File} contains a null character in its tag, but this is not allowed by its tagging standard. All characters after the null char will be discarded. Please fix your file", the ID3v2.4 standard allows and actually requires the use of the null character to terminate strings for certain frames like UFID frames, see: https://id3.org/id3v2.4.0-frames
My solution simply skips the sanitization of the UFID Field. I don't think there should be any problems posed by the lack of the usage of the TryGetSanitizedAdditionalFields method, as it pretty much only truncates the tags at the position of a null character, which is undesired here.
I have tested my fix with files that I identified with MusicBrainz Picard and have found it successful: instead of outputting "http://musicbrainz.org" in the "ID MusicBrainz Recording" in Jellyfin metadata, it outputs the correct ID and doesn't give an error anymore.
Changes
Gets the raw UFID value and doesn't sanitize it
Issues
Fixes #14844
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.