diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-08-23 16:27:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-23 16:27:24 +0200 |
| commit | 7ce21d436baa2ffe80e7723f3d0887db7a0eeaf1 (patch) | |
| tree | 098adec7e4b207bd055fecf417655cb863f09f8f /Emby.Server.Implementations/Data/SqliteItemRepository.cs | |
| parent | f9bb79285b672e63054b4ab1b49b744606851c34 (diff) | |
| parent | 340f83c3f5e0f42e7b02be0e4402e2039f8fe734 (diff) | |
Merge pull request #3961 from crobibero/api-json-null
Ignore null json values
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 5bf740cfc..48e2f5d4a 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -90,6 +90,9 @@ namespace Emby.Server.Implementations.Data _typeMapper = new TypeMapper(); _jsonOptions = JsonDefaults.GetOptions(); + // GetItem throws NotSupportedException with this enabled, so hardcode false. + _jsonOptions.IgnoreNullValues = false; + DbFilePath = Path.Combine(_config.ApplicationPaths.DataPath, "library.db"); } |
