소스 검색

Merge pull request #6498 from Bond-009/invalidop

Fix InvalidOperationException when serializing MediaPathInfo
Claus Vium 3 년 전
부모
커밋
95ca1d5487
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      MediaBrowser.Model/Configuration/MediaPathInfo.cs

+ 6 - 0
MediaBrowser.Model/Configuration/MediaPathInfo.cs

@@ -9,6 +9,12 @@ namespace MediaBrowser.Model.Configuration
             Path = path;
         }
 
+        // Needed for xml serialization
+        public MediaPathInfo()
+        {
+            Path = string.Empty;
+        }
+
         public string Path { get; set; }
 
         public string? NetworkPath { get; set; }