Fix for multiple identical physical locations

For some reason, physical locations were coming through twice.
This commit is contained in:
ScottIsAFool 2014-02-28 22:46:00 +00:00
parent fb51f1e6f0
commit 31043e8f5d

View File

@ -149,7 +149,7 @@ namespace MediaBrowser.Controller.Entities
try
{
locationsDicionary = PhysicalLocations.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
locationsDicionary = PhysicalLocations.Distinct().ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
}
catch (IOException ex)
{
@ -181,7 +181,7 @@ namespace MediaBrowser.Controller.Entities
try
{
locationsDicionary = PhysicalLocations.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
locationsDicionary = PhysicalLocations.Distinct().ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);
}
catch (IOException ex)
{