mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix for multiple identical physical locations
For some reason, physical locations were coming through twice.
This commit is contained in:
parent
fb51f1e6f0
commit
31043e8f5d
@ -149,7 +149,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
locationsDicionary = PhysicalLocations.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
locationsDicionary = PhysicalLocations.Distinct().ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
@ -181,7 +181,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
locationsDicionary = PhysicalLocations.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
locationsDicionary = PhysicalLocations.Distinct().ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user