Incorrect metadata collected from filenames - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification) +---- Thread: Incorrect metadata collected from filenames (/t-incorrect-metadata-collected-from-filenames) |
Incorrect metadata collected from filenames - helamonster - 2024-09-24 When a video filename ends with " - [1904x1040].mp4" Jellyfin assumes the year is 1904 instead of treating it as part of the label. For example, with a directory named: "My Movie (1972)" And the following video files in that directory: "My Movie (1972) - [1080p].mp4" "My Movie (1972) - [1904x1040].mp4" A metadata scan / library rescan does not work as expected. Instead of the files being treated as different versions of the same movie with different labels, the second file is treated as a second movie with year 1904 and contains no valid movie metadata. In my example, the correct metadata is retrieved for the first file. I am not sure whether that affects this misbehavior or not. Jellyfin version: 10.9.10 Is this a bug? It seems like it. Update: This misbehavior does not happen if the labels are not enclosed with brackets, e.g. the filenames are: "My Movie (1972) - 1080p.mp4" "My Movie (1972) - 1904x1040.mp4" RE: Incorrect metadata collected from filenames - TheDreadPirate - 2024-09-24 I'm having trouble finding the thread I'm thinking about (or maybe it was in our Matrix chat?), but someone else encountered this problem. IIRC, the solution was to only use the vertical resolution in the "version" portion of the file name. Something about having two numbers tripping up Jellyfin's file name parser. RE: Incorrect metadata collected from filenames - helamonster - 2024-09-28 I was able to avoid the problem by doing something similar, but I would consider that a workaround and not an actual solution. The way I see it, there must be a bug in the parsing logic. I would imagine that anything within the brackets should not be parsed for the year or anything else since its specifically used as the label. Thoughts? RE: Incorrect metadata collected from filenames - TheDreadPirate - 2024-09-28 It is a bug in the parsing logic. The problem is that the parsing logic is a nightmare that few are brave enough to attempt to modify and risk potentially breaking it even further. RE: Incorrect metadata collected from filenames - helamonster - 2024-10-02 lol, I can relate to that. I'll take a peek at it myself to see if I can help, but no promises. Anyone more familiar with the parsing logic want to point me in that direction? |