Remove manual N/A removal and write directly to stream

This commit is contained in:
David
2020-12-26 20:00:54 +01:00
parent e0499f8769
commit f73bb92ce3
2 changed files with 3 additions and 7 deletions

View File

@@ -353,8 +353,6 @@ namespace MediaBrowser.Providers.Plugins.Omdb
using var response = await GetOmdbResponse(httpClient, url, cancellationToken).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
// OMDb is sending "N/A" for no empty number fields
content = content.Replace("\"N/A\"", "\"\"", StringComparison.InvariantCulture);
return JsonSerializer.Deserialize<T>(content, _jsonOptions);
}