diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-09-03 18:45:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-03 18:45:06 +0200 |
| commit | 95ca1d54876e928dc654736ff5a279728c0f9ed0 (patch) | |
| tree | d728dae3fafa9414748e615046b7073e9f19249f | |
| parent | 3ec7ecf3995bb41e2ddd7e937f593b8fa4dfd552 (diff) | |
| parent | b458f85c47e5f63e53062b8c96c564c674bb62dc (diff) | |
Merge pull request #6498 from Bond-009/invalidop
Fix InvalidOperationException when serializing MediaPathInfo
| -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; } |
