mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #15977] [CLOSED] Fix duplicate paths in PhysicalLocationsList #14485
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/15977
Author: @ZeusCraft10
Created: 1/8/2026
Status: ❌ Closed
Base:
master← Head:fix/duplicate-physical-locations📝 Commits (2)
f2d5fb7Fix duplicate paths in PhysicalLocationsListdb72ed8Use 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.