mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Remove manual N/A removal and write directly to stream
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user