Merge pull request #4 from oddstr13/fix-1

Explicit decompress no longer needed
This commit is contained in:
Odd Stråbø 2021-03-12 23:50:13 +01:00 committed by GitHub
commit 06a8e875b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -528,8 +528,7 @@ namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
using (var response = await httpClient.GetAsync(url).ConfigureAwait(false))
using (var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false))
using (var unzipped = new GZipStream(stream, CompressionMode.Decompress))
using (var reader = new StreamReader(unzipped, Encoding.UTF8, true))
using (var reader = new StreamReader(stream, Encoding.UTF8, true))
using (var file = File.Open(seriesDataPath, FileMode.Create, FileAccess.Write))
using (var writer = new StreamWriter(file))
{
@ -772,7 +771,7 @@ namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
private static async Task SaveEpsiodeXml(string seriesDataDirectory, string xml)
{
var episodeNumber = ParseEpisodeNumber(xml);
var episodeNumber = await ParseEpisodeNumber(xml).ConfigureAwait(false);
if (episodeNumber != null)
{