[PR #13315] [MERGED] Removing CollectionFolders from cache when they are deleted on disk. #13533

Closed
opened 2026-02-07 07:14:38 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13315
Author: @sinterdev
Created: 1/2/2025
Status: Merged
Merged: 1/31/2025
Merged by: @crobibero

Base: masterHead: master


📝 Commits (2)

  • f4533be Removing CollectionFolders from cache when they are deleted on disk.
  • 296791b Restoring previous expression.

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 Emby.Server.Implementations/Library/LibraryManager.cs (+10 -2)

📄 Description

If the user has somehow deleted a collection on disk, it can prevent other collections from being scanned properly.

Changes
Added a few lines to synchronize the state between the cached collections and the collections in the root Jellyfin directory.

Issues
#12395

Testing

You can test this change by...

  • Creating a new collection.
  • Deleting the collection from %LOCALAPPDATA%\jellyfin\root\default.
  • Executing the "Scan Media Library" task in "Dashboard > Scheduled Tasks".

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13315 **Author:** [@sinterdev](https://github.com/sinterdev) **Created:** 1/2/2025 **Status:** ✅ Merged **Merged:** 1/31/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`f4533be`](https://github.com/jellyfin/jellyfin/commit/f4533be65e5ba4201ea83e7c6a067897fe2ef4ce) Removing CollectionFolders from cache when they are deleted on disk. - [`296791b`](https://github.com/jellyfin/jellyfin/commit/296791b0b8922d8699329a77ede190b8475076bd) Restoring previous expression. ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Library/LibraryManager.cs` (+10 -2) </details> ### 📄 Description If the user has somehow deleted a collection on disk, it can prevent other collections from being scanned properly. **Changes** Added a few lines to synchronize the state between the cached collections and the collections in the root Jellyfin directory. **Issues** #12395 **Testing** You can test this change by... - Creating a new collection. - Deleting the collection from `%LOCALAPPDATA%\jellyfin\root\default`. - Executing the "Scan Media Library" task in "Dashboard > Scheduled Tasks". --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:14:38 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13533