diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-09-03 16:39:03 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-09-03 16:39:03 +0200 |
| commit | b458f85c47e5f63e53062b8c96c564c674bb62dc (patch) | |
| tree | 868af11e32ca2ba9745382a981c05136db968ad4 /MediaBrowser.Model/Configuration | |
| parent | 79e51b7fa20dbcb013ddd335fa829f83802dae71 (diff) | |
Fix InvalidOperationException when serializing MediaPathInfo
Diffstat (limited to 'MediaBrowser.Model/Configuration')
| -rw-r--r-- | MediaBrowser.Model/Configuration/MediaPathInfo.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/MediaPathInfo.cs b/MediaBrowser.Model/Configuration/MediaPathInfo.cs index d096defcb..a7bc43590 100644 --- a/MediaBrowser.Model/Configuration/MediaPathInfo.cs +++ b/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; } |
