Răsfoiți Sursa

Update DlnaManager.cs

BaronGreenback 4 ani în urmă
părinte
comite
b673f5bcde
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      Emby.Dlna/DlnaManager.cs

+ 8 - 0
Emby.Dlna/DlnaManager.cs

@@ -140,6 +140,14 @@ namespace Emby.Dlna
 
         private bool IsMatch(DeviceIdentification deviceInfo, DeviceIdentification profileInfo)
         {
+            if (!string.IsNullOrEmpty(profileInfo.FriendlyName))
+            {
+                if (deviceInfo.FriendlyName == null || !IsRegexMatch(deviceInfo.FriendlyName, profileInfo.FriendlyName))
+                {
+                    return false;
+                }
+            }
+            
             if (!string.IsNullOrEmpty(profileInfo.Manufacturer))
             {
                 if (deviceInfo.Manufacturer == null || !IsRegexMatch(deviceInfo.Manufacturer, profileInfo.Manufacturer))