فهرست منبع

Fix for multiple identical physical locations

For some reason, physical locations were coming through twice.
ScottIsAFool 11 سال پیش
والد
کامیت
31043e8f5d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      MediaBrowser.Controller/Entities/CollectionFolder.cs

+ 2 - 2
MediaBrowser.Controller/Entities/CollectionFolder.cs

@@ -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)
             {
             {