Browse Source

Fix InvalidOperationException when serializing MediaPathInfo

Bond_009 3 years ago
parent
commit
b458f85c47
1 changed files with 6 additions and 0 deletions
  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;
             Path = path;
         }
         }
 
 
+        // Needed for xml serialization
+        public MediaPathInfo()
+        {
+            Path = string.Empty;
+        }
+
         public string Path { get; set; }
         public string Path { get; set; }
 
 
         public string? NetworkPath { get; set; }
         public string? NetworkPath { get; set; }