aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Json/JsonDefaults.cs
AgeCommit message (Collapse)Author
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-03-20Merge pull request #5504 from crobibero/json-string-converterBond-009
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-03-12Add JsonStringConvertercrobibero
2021-03-05Add JsonVersionConverter and testscrobibero
2021-02-23Improve testsBond_009
2021-02-13Don't enable case-insensitivity for json by defaultBond_009
2020-12-30Merge branch 'master' into PluginDowngradeCody Robibero
2020-12-29Add JsonConverter for Nullable Guidscrobibero
2020-12-23Making it workBaronGreenback
2020-12-23Updated to latest unstable.BaronGreenback
2020-12-23Initialize JsonSerializerOptions staticallycrobibero
2020-12-21Add JsonDateTimeConvertercrobibero
2020-12-15Updated JsonDefaultsGreenback
2020-12-15Changed as suggested.Greenback
2020-12-07Simplify convertercrobibero
2020-11-25Fix efcore not returning a UTC DateTimecrobibero
2020-11-24Merge pull request #4517 from BaronGreenback/pluginMessageFixBill Thornton
[Fix] Fixed Plugin versioning in browser notifications
2020-11-19Write DateTimes in ISO8601 format for backwards compatibility.crobibero
2020-11-19Fixed notificationGreenback
2020-09-27Properly handle null structs in jsoncrobibero
2020-09-03Move json profiles to constant strings.crobibero
2020-09-01Simplify json converterscrobibero
2020-09-01Fallback to base jsonconvertercrobibero
2020-09-01readd nullable number converterscrobibero
2020-08-26Clean up json Converterscrobibero
2020-08-25bump System.Text.Jsoncrobibero
2020-08-23Ignore null json valuescrobibero
2020-08-21Add nullable int32, int64 json converterscrobibero
2020-07-14Move field to the controllerDavid
2020-07-14Don't recreate JsonSerializerOptions every timeDavid
2020-07-12Fix parsingDavid
2020-06-25Merge pull request #2929 from crobibero/api-scheduled-tasksPatrick Barron
Scheduled Tasks to Jellyfin.Api
2020-06-19Add JsonInto32ConverterDavid
Add additional swagger type mapping
2020-06-13Merge remote-tracking branch 'upstream/api-migration' into api-scheduled-taskscrobibero
2020-06-13Fix merge and buildcrobibero
2020-06-04Fix Api Routingcrobibero
2020-06-02Add Dictionary with non-string keys to System.Text.Jsoncrobibero
2020-06-02Fix Json Enum conversion, map all JsonDefaults properties to APIcrobibero
2019-12-22Fix exceptions while scanningBond_009
Fixes these exceptions: ``` [2019-12-22 20:48:14.779 +01:00] [ERR] Error in WaitForExit System.InvalidOperationException: No process is associated with this object. at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.GetWaitState() at System.Diagnostics.Process.WaitForExitCore(Int32 milliseconds) at System.Diagnostics.Process.WaitForExit(Int32 milliseconds) at Emby.Server.Implementations.Diagnostics.CommonProcess.WaitForExit(Int32 timeMs) in /home/pi/dev/jellyfin/Emby.Server.Implementations/Diagnostics/CommonProcess.cs:line 100 at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.StopProcess(ProcessWrapper process, Int32 waitTimeMs) in /home/pi/dev/jellyfin/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs:line 785 [2019-12-22 20:48:14.790 +01:00] [INF] Killing ffmpeg process [2019-12-22 20:48:14.795 +01:00] [ERR] Error killing process System.InvalidOperationException: No process is associated with this object. at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.Kill() at Emby.Server.Implementations.Diagnostics.CommonProcess.Kill() in /home/pi/dev/jellyfin/Emby.Server.Implementations/Diagnostics/CommonProcess.cs:line 95 at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.StopProcess(ProcessWrapper process, Int32 waitTimeMs) in /home/pi/dev/jellyfin/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs:line 799 [2019-12-22 20:48:14.808 +01:00] [ERR] Error in "ffprobe" System.Text.Json.JsonException: The JSON value could not be converted to System.String. Path: $.streams[0].start_pts | LineNumber: 32 | BytePositionInLine: 26. ---> System.InvalidOperationException: Cannot get the value of a token type 'Number' as a string. at System.Text.Json.Utf8JsonReader.GetString() at System.Text.Json.Serialization.Converters.JsonConverterString.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.JsonPropertyInfoNotNullable`4.OnRead(JsonTokenType tokenType, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.JsonPropertyInfo.Read(JsonTokenType tokenType, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.JsonSerializer.HandleValue(JsonTokenType tokenType, JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& readStack, Utf8JsonReader& reader, Exception ex) at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack) at System.Text.Json.JsonSerializer.ReadCore(JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan`1 buffer, JsonSerializerOptions options, ReadStack& readStack) at System.Text.Json.JsonSerializer.ReadAsync[TValue](Stream utf8Json, Type returnType, JsonSerializerOptions options, CancellationToken cancellationToken) at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, Boolean forceEnableLogging, CancellationToken cancellationToken) in /home/pi/dev/jellyfin/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs:line 399 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, CancellationToken cancellationToken) in /home/pi/dev/jellyfin/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs:line 122 at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken) in /home/pi/dev/jellyfin/MediaBrowser.Providers/Manager/MetadataService.cs:line 815 ```
2019-10-08Use System.Text.Json apiBond_009