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…
Reference in New Issue
Block a user