Hash files for simpler metadata recreation after renaming folders #6344

Closed
opened 2026-02-07 03:30:23 +03:00 by OVERLORD · 2 comments
Owner

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?

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?
Author
Owner

@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

@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
Author
Owner

@felix920506 commented on GitHub (Oct 14, 2024):

Duplicate of #1481

@felix920506 commented on GitHub (Oct 14, 2024): Duplicate of #1481
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#6344