NFO files are not created for new watched files but are when manually scanning for missing metadata #6240

Closed
opened 2026-02-07 03:19:36 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @requinix on GitHub (Aug 31, 2024).

This issue respects the following points:

  • This is a bug, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found here.
  • This issue is not already reported on GitHub (I've searched it).
  • I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
  • I agree to follow Jellyfin's Code of Conduct.
  • This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.

Description of the bug

Two libraries (a Shows and a Movies) are configured to watch their respective directory trees, and to write thumbnail images and NFO information to disk. This seems to work fine in that, when new video files are created, associated metadata and images appear to be available as they should be through normal browsing, the videos are shown in recently added lists, etc. On disk, the thumbnail files are created as expected - but NFO files are not created. If I use the admin Dashboard > Libraries > (whatever) > Scan library > Scan for missing metadata action, the missing NFO files are created successfully.

Scanning for new and updated files does not create the files. The Scan Media Library task is enabled (and running) and does not create the files.

Notable library settings:

  • Enabled real time monitoring
  • Disabled all metadata downloaders of any kind
  • Never automatically refreshes metadata from the internet
  • Enabled NFO metadata saver
  • Enabled embedded image extractor and screen grabber (disabled all others)
  • Enabled saving artwork into folders

I think this also affects new shows and new seasons, but I don't remember that for sure...

I'm willing and able to review the source, if that helps, just point me in the right direction of where to start looking. I would speculate that NFO saving for watched files works in general (otherwise surely someone would have noticed a problem by now) but is set up such that it only happens when using external metadata and/or when refreshing from the internet.

Reproduction steps

Setup:

  1. Create a Shows library with the above settings
  2. Create a show and season, add episode videos, add artwork, do whatever else you want
  3. Run a "missing metadata" scan and ensure all NFO files have been created

Reproduce:

  1. Add a new episode video

What is the current bug behavior?

  • The thumbnail image is created automatically within a couple minutes of the new file being added
  • The NFO file is not created at that same time
  • Even days later, the NFO file still has not been created automatically

What is the expected correct behavior?

  • Both the thumbnail and NFO file are created automatically, presumably at the same time

Jellyfin Server version

[updated] 10.10.6

Specify commit id

No response

Specify unstable release number

No response

Specify version number

[updated] 10.10.6

Specify the build version

[updated] 10.10.6

Environment

- OS: Debian 12
- Linux Kernel: (whatever is current)
- Virtualization: Kubernetes, using the jellyfin/jellyfin image (can provide details if necessary)
- Clients: n/a
- Browser: n/a
- FFmpeg Version: (bundled)
- Playback Method: n/a
- Hardware Acceleration: n/a
- GPU Model: n/a
- Plugins: none, besides the base plugins
- Reverse Proxy: n/a
- Base URL: n/a
- Networking and Storage: (can provide details if necessary)

Jellyfin logs

Two new videos were added around 17:47 and 18:43:

...
[2024-08-30 11:25:51.645 +00:00] [INF] [39] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 1 seconds
[2024-08-30 11:25:51.646 +00:00] [INF] [34] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/Movies"
[2024-08-30 11:25:51.656 +00:00] [INF] [142] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/Shows"
[2024-08-30 17:47:10.826 +00:00] [INF] [177] Emby.Server.Implementations.IO.LibraryMonitor: "Season 1" ("/media/Shows/xxx/Season 01") will be refreshed.
[2024-08-30 17:47:10.908 +00:00] [INF] [178] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/Shows/xxx/Season 01/xxx - S01E08 - 008.mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-08-30 18:43:11.925 +00:00] [INF] [41] Emby.Server.Implementations.IO.LibraryMonitor: "Season 1" ("/media/Shows/yyy/Season 01") will be refreshed.
[2024-08-30 18:43:11.953 +00:00] [INF] [139] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/Shows/yyy/Season 01/yyy - S01E09 - 009.mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-08-30 20:04:23.958 +00:00] [INF] [41] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "admin" has succeeded.
...

20:04 was me logging in to rescan metadata. For those logs, the same ffprobe
messages are spammed for all videos (including the two new ones), otherwise
there's nothing else (even for the two new ones).

FFmpeg logs

No response

Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @requinix on GitHub (Aug 31, 2024). ### This issue respects the following points: - [X] This is a **bug**, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found [here](https://jellyfin.org/contact/). - [X] This issue is **not** already reported on [GitHub](https://github.com/jellyfin/jellyfin/issues?q=is%3Aopen+is%3Aissue) _(I've searched it)_. - [X] I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue. - [X] I agree to follow Jellyfin's [Code of Conduct](https://jellyfin.org/docs/general/community-standards.html#code-of-conduct). - [X] This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one. ### Description of the bug Two libraries (a Shows and a Movies) are configured to watch their respective directory trees, and to write thumbnail images and NFO information to disk. This seems to work fine in that, when new video files are created, associated metadata and images appear to be available as they should be through normal browsing, the videos are shown in recently added lists, etc. On disk, the thumbnail files are created as expected - but NFO files are _not_ created. If I use the admin `Dashboard > Libraries > (whatever) > Scan library > Scan for missing metadata` action, the missing NFO files _are_ created successfully. Scanning `for new and updated files` does not create the files. The `Scan Media Library` task is enabled (and running) and does not create the files. Notable library settings: * Enabled real time monitoring * Disabled all metadata downloaders of any kind * Never automatically refreshes metadata from the internet * Enabled NFO metadata saver * Enabled embedded image extractor and screen grabber (disabled all others) * Enabled saving artwork into folders I think this also affects new shows and new seasons, but I don't remember that for sure... I'm willing and able to review the source, if that helps, just point me in the right direction of where to start looking. I would speculate that NFO saving for watched files works in general (otherwise surely someone would have noticed a problem by now) but is set up such that it only happens when using external metadata and/or when refreshing from the internet. ### Reproduction steps Setup: 1. Create a Shows library with the above settings 2. Create a show and season, add episode videos, add artwork, do whatever else you want 3. Run a "missing metadata" scan and ensure all NFO files have been created Reproduce: 1. Add a new episode video ### What is the current _bug_ behavior? * The thumbnail image is created automatically within a couple minutes of the new file being added * The NFO file is not created at that same time * Even days later, the NFO file still has not been created automatically ### What is the expected _correct_ behavior? * Both the thumbnail and NFO file are created automatically, presumably at the same time ### Jellyfin Server version [updated] 10.10.6 ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number [updated] 10.10.6 ### Specify the build version [updated] 10.10.6 ### Environment ```markdown - OS: Debian 12 - Linux Kernel: (whatever is current) - Virtualization: Kubernetes, using the jellyfin/jellyfin image (can provide details if necessary) - Clients: n/a - Browser: n/a - FFmpeg Version: (bundled) - Playback Method: n/a - Hardware Acceleration: n/a - GPU Model: n/a - Plugins: none, besides the base plugins - Reverse Proxy: n/a - Base URL: n/a - Networking and Storage: (can provide details if necessary) ``` ### Jellyfin logs ```shell Two new videos were added around 17:47 and 18:43: ... [2024-08-30 11:25:51.645 +00:00] [INF] [39] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 1 seconds [2024-08-30 11:25:51.646 +00:00] [INF] [34] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/Movies" [2024-08-30 11:25:51.656 +00:00] [INF] [142] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/Shows" [2024-08-30 17:47:10.826 +00:00] [INF] [177] Emby.Server.Implementations.IO.LibraryMonitor: "Season 1" ("/media/Shows/xxx/Season 01") will be refreshed. [2024-08-30 17:47:10.908 +00:00] [INF] [178] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/Shows/xxx/Season 01/xxx - S01E08 - 008.mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format" [2024-08-30 18:43:11.925 +00:00] [INF] [41] Emby.Server.Implementations.IO.LibraryMonitor: "Season 1" ("/media/Shows/yyy/Season 01") will be refreshed. [2024-08-30 18:43:11.953 +00:00] [INF] [139] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/media/Shows/yyy/Season 01/yyy - S01E09 - 009.mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format" [2024-08-30 20:04:23.958 +00:00] [INF] [41] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for "admin" has succeeded. ... 20:04 was me logging in to rescan metadata. For those logs, the same ffprobe messages are spammed for all videos (including the two new ones), otherwise there's nothing else (even for the two new ones). ``` ### FFmpeg logs _No response_ ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bugstale labels 2026-02-07 03:19:36 +03:00
Author
Owner

@ServeurpersoCom commented on GitHub (Sep 21, 2024):

I have the problem of incomplete NFO when I add multiple movies, the ffprobe result with audio track and other data is not added to the NFO. This is a random problem (like a thread concurrency problem that I can't explain). Also the "scanning for missing metadata" don't work for entire library, I must click on each movie "search for missing metadata" one by one:( to get the good NFO.

@ServeurpersoCom commented on GitHub (Sep 21, 2024): I have the problem of incomplete NFO when I add multiple movies, the ffprobe result with audio track and other data is not added to the NFO. This is a random problem (like a thread concurrency problem that I can't explain). Also the "scanning for missing metadata" don't work for entire library, I must click on each movie "search for missing metadata" one by one:( to get the good NFO.
Author
Owner

@tanmoumou252 commented on GitHub (Nov 4, 2024):

I have to say that the new Jellyfin version's ability to recognize nfo files is practically nonexistent. Why do I say this? I've generated nfo files using tmm
Image

Looking at this image again, the video is already S01E01, but what does it show? It doesn't display the season and episode numbers, and it will display Unknown Season

@tanmoumou252 commented on GitHub (Nov 4, 2024): I have to say that the new Jellyfin version's ability to recognize nfo files is practically nonexistent. Why do I say this? I've generated nfo files using tmm ![Image](https://github.com/user-attachments/assets/eafe5b11-6e43-41c1-95e9-ac7d1bde90ba) Looking at this image again, the video is already S01E01, but what does it show? It doesn't display the season and episode numbers, and it will display Unknown Season
Author
Owner

@tanmoumou252 commented on GitHub (Nov 4, 2024):

In this case, I really want to revert to an older normal version very very bad. I no longer want to update Jellyfin anymore

@tanmoumou252 commented on GitHub (Nov 4, 2024): In this case, I really want to revert to an older normal version very very bad. I no longer want to update Jellyfin anymore
Author
Owner

@jellyfin-bot commented on GitHub (Mar 5, 2025):

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.

@jellyfin-bot commented on GitHub (Mar 5, 2025): 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](https://jellyfin.org/contact).
Author
Owner

@requinix commented on GitHub (Mar 5, 2025):

I just now went to the current 10.10.6 and no change: new video files are picked up, thumbnails are created, but .nfo files are not created.

I'm still able to help out on the code side of things if someone can point out where I should start looking... From tanmoumou252's comment I'm wondering if there are larger problems with NFO files and watched directories?

@requinix commented on GitHub (Mar 5, 2025): I just now went to the current 10.10.6 and no change: new video files are picked up, thumbnails are created, but .nfo files are not created. I'm still able to help out on the code side of things if someone can point out where I should start looking... From tanmoumou252's comment I'm wondering if there are larger problems with NFO files and watched directories?
Author
Owner

@tanmoumou252 commented on GitHub (Mar 5, 2025):

I just now went to the current 10.10.6 and no change: new video files are picked up, thumbnails are created, but .nfo files are not created.

I'm still able to help out on the code side of things if someone can point out where I should start looking... From tanmoumou252's comment I'm wondering if there are larger problems with NFO files and watched directories?

In my experience, the nfo files created by tmm stopped working after an update to a specific version of Jellyfin. The server appears to read nfo files only once, and subsequently, any new videos and nfo files added to the folder are not recognized by the system, all showing up as unknown seasons.

The solution is straightforward: simply rename the folder, refresh the media library, and the nfo file should be readable again. Alternatively, you can revert to an older version, likely from early 2023 or 2024, when this problem didn't exist

@tanmoumou252 commented on GitHub (Mar 5, 2025): > I just now went to the current 10.10.6 and no change: new video files are picked up, thumbnails are created, but .nfo files are not created. > > I'm still able to help out on the code side of things if someone can point out where I should start looking... From tanmoumou252's comment I'm wondering if there are larger problems with NFO files and watched directories? In my experience, the nfo files created by tmm stopped working after an update to a specific version of Jellyfin. The server appears to read nfo files only once, and subsequently, any new videos and nfo files added to the folder are not recognized by the system, all showing up as unknown seasons. The solution is straightforward: simply rename the folder, refresh the media library, and the nfo file should be readable again. Alternatively, you can revert to an older version, likely from early 2023 or 2024, when this problem didn't exist
Author
Owner

@jellyfin-bot commented on GitHub (Jul 4, 2025):

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.

@jellyfin-bot commented on GitHub (Jul 4, 2025): 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](https://jellyfin.org/contact).
Author
Owner

@jellyfin-bot commented on GitHub (Jul 25, 2025):

This issue was closed due to inactivity.

@jellyfin-bot commented on GitHub (Jul 25, 2025): This issue was closed due to inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#6240