mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-15 20:20:25 +01:00
Fix OMDb converter
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
@@ -21,6 +22,9 @@ namespace MediaBrowser.Common.Json.Converters
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var converter = TypeDescriptor.GetConverter(typeToConvert);
|
||||
return (T?)converter.ConvertFromString(str);
|
||||
}
|
||||
|
||||
return JsonSerializer.Deserialize<T>(ref reader, options);
|
||||
|
||||
Reference in New Issue
Block a user