mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Issue]: Folder refresh causes subtitle/file rescan every time #5945
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 @jessienab on GitHub (Jun 6, 2024).
Please describe your bug
I have a folder of Youtube videos. Inside are video files, image files, text files, and subtitle files (.srt, which are text files but considered different).
Currently it seems that every time a modification is done to the parent folder, whether a new video is added, a new folder is added, etc, a refresh of the folder is triggered, which mainly seems to iterate over subtitles of videos "due to external subtitles change."... even when there's no change to the scanned subtitles, nor any change to the scanned videos (which are all completely irrelevant to the actual newly added files).
Here is an example:
File examples:
This behaviour seems new, as in the past I could simply download single video files, or many new video files, even ones with subtitles, without any sort of continuous refresh of the root folder... which causes heavy I/O reads.
Reproduction Steps
Jellyfin Version
10.9.5
Environment
Jellyfin logs
Code of Conduct
Thank you Ghost and Oddstr13 on the troubleshooting matrix.org room.
@jessienab commented on GitHub (Jun 6, 2024):
Another comment, and I wanted this to be separate
Same issue presents itself even with a folder that already exists, for this case I mean. This downloaded video (wcWr5SZDIog) from youtube has one subtitle file. First the NFB folder is scanned, specifically ffprobing subtitle files, then the entire /data/youtube folder.
*** Another update ***
Which is related to https://github.com/jellyfin/jellyfin/issues/11980 I believe. So at the moment it would be a good idea to wait until 10.9.6 to see if these two issues are related.EDIT 2024-06-07 I've updated to 10.9.6 and this issue still persists. File refresher will set to the proper sub-directory but then reset itself to the root directory, as shown above...
The issue seems to also be irrelevant of if a video has subtitles available to download.
@jessienab commented on GitHub (Aug 7, 2024):
Hello,
I don't want to bump this but editing the version would probably go un-noticed.
This issue still occurs with
using Linuxserver's docker-jellyfin; however their build simply has more ease-of-use options, whereas this presented issue does seem to be specific to upstream.
My solution for now has been to disable realtime monitoring and instead schedule a rescan every day at midnight; which is kinda inconvenient but it avoids clogging the system during active use time (when I'm awake).
@felix920506 commented on GitHub (Aug 28, 2024):
Can you try not using a container at all? You mentioned that the LSIO image doesn't have this bug and it would be helpful to know if it is something specific to our docker image.
@jessienab commented on GitHub (Aug 28, 2024):
Hi apologies, I am using the LSIO image specifically, where I am having the issue. In this case should it be reported to their repo? I figured it would make more sense to publish this upstream (here).
I hesitate to use the official docker image as would that potentially cause some issues with the database?
@felix920506 commented on GitHub (Aug 28, 2024):
I'm not familiar with the different images. Please go ask on our forum or chat rooms. https://jellyfin.org/contact
@jellyfin-bot commented on GitHub (Dec 26, 2024):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@jessienab commented on GitHub (Dec 29, 2024):
Hi there,
This can be considered closed. While I still feel it occurs with 10.10.3, the same performance impact and EXCESSIVE scanning does not appear to be occuring; Jellyfin does parse over files that haven't changed at all, and subtitles that already existing, but it's much quicker now, and the filelist is much smaller now.
Therefore, I'm closing this as I don't feel it's affecting me (and I've modified my update schedule otherwise), and it doesn't seem like anyone else has commented.
To note, I tested with the standard Docker Jellyfin image, and the LinuxServer image, and the same sort of output was received, so I feel it is agnostic to the Docker image.
Thank you!
@jessienab commented on GitHub (Oct 22, 2025):
Just want to comment this is still happening with 10.11.0. Example file where there has been zero changes to external subtitles or the video files themselves:
But as noted before, performance is not as heavily impacted... though it is annoying.