[PR #15977] [CLOSED] Fix duplicate paths in PhysicalLocationsList #14485

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/15977
Author: @ZeusCraft10
Created: 1/8/2026
Status: Closed

Base: masterHead: fix/duplicate-physical-locations


📝 Commits (2)

  • f2d5fb7 Fix duplicate paths in PhysicalLocationsList
  • db72ed8 Use consistent case-insensitive comparison for path checks

📊 Changes

2 files changed (+8 additions, -4 deletions)

View changed files

📝 MediaBrowser.Controller/Entities/AggregateFolder.cs (+4 -2)
📝 MediaBrowser.Controller/Entities/CollectionFolder.cs (+4 -2)

📄 Description

Changes

Saw the issue report about Collections taking ~5 seconds to load after upgrading to 10.11. I was able to replicate it and traced the problem to duplicate paths in PhysicalLocationsList - the same folders were being scanned multiple times during library loads.

The fix adds a .Distinct() call when setting PhysicalLocationsList in both CollectionFolder and AggregateFolder. Also updated the SequenceEqual() check for _requiresRefresh to use the same case-insensitive comparer, so the refresh detection and deduplication logic are consistent. Existing databases will self-correct on the next library refresh, so no migration is needed.

Issues
Fixes #15966


🔄 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/15977 **Author:** [@ZeusCraft10](https://github.com/ZeusCraft10) **Created:** 1/8/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix/duplicate-physical-locations` --- ### 📝 Commits (2) - [`f2d5fb7`](https://github.com/jellyfin/jellyfin/commit/f2d5fb7cf0fdfabd465f8f3dd0497cb39975568e) Fix duplicate paths in PhysicalLocationsList - [`db72ed8`](https://github.com/jellyfin/jellyfin/commit/db72ed8ca370342ba11a2f1a3d411afd630353d5) Use consistent case-insensitive comparison for path checks ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Controller/Entities/AggregateFolder.cs` (+4 -2) 📝 `MediaBrowser.Controller/Entities/CollectionFolder.cs` (+4 -2) </details> ### 📄 Description **Changes** Saw the issue report about Collections taking ~5 seconds to load after upgrading to 10.11. I was able to replicate it and traced the problem to duplicate paths in PhysicalLocationsList - the same folders were being scanned multiple times during library loads. The fix adds a .Distinct() call when setting PhysicalLocationsList in both CollectionFolder and AggregateFolder. Also updated the SequenceEqual() check for _requiresRefresh to use the same case-insensitive comparer, so the refresh detection and deduplication logic are consistent. Existing databases will self-correct on the next library refresh, so no migration is needed. **Issues** Fixes #15966 --- <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:30:35 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14485