mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Hash files for simpler metadata recreation after renaming folders #6344
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?
Originally created by @DerSpatz on GitHub (Oct 13, 2024).
I recently renamed the folders for my TV shows according to the official naming scheme. "S01" ist now "Season 01" and so on.
I ran the media library scan after this, so that Jellyfin recognizes the change in folder structure. This task tooks very long, and other tasks like "Extract chapter screenshots" also takes a long time.
I assume this is because Jellyfin does not recognize the old files in their new location.
Wouldn't it be useful for Jellyfin to not link the "metadata" (Trickplay files, chapter images, etc.) to the actual filepath, but to some hash or other unique identifier for the files? This would give more flexibility and less overhead when renaming files/folders. Maybe find a universal system, so that plugins like Intro Skipper can also make use of this?
@gnattu commented on GitHub (Oct 14, 2024):
You still need to find the real file name and its path anyway, and that still requires going over all the folders to hash all files
@felix920506 commented on GitHub (Oct 14, 2024):
Duplicate of #1481