diff --git a/src/NzbDrone.Core/Indexers/Definitions/AvistaZ.cs b/src/NzbDrone.Core/Indexers/Definitions/AvistaZ.cs index dc4a31c7f..381546862 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AvistaZ.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AvistaZ.cs @@ -59,6 +59,6 @@ namespace NzbDrone.Core.Indexers.Definitions public class AvistaZParser : AvistazParserBase { - protected override string TimezoneOffset => "+01:00"; + protected override string TimezoneOffset => "+02:00"; } } diff --git a/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParserBase.cs b/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParserBase.cs index e824a3222..5cdc2a87b 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParserBase.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParserBase.cs @@ -13,18 +13,18 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz { public class AvistazParserBase : IParseIndexerResponse { - protected virtual string TimezoneOffset => "-05:00"; // Avistaz does not specify a timezone & returns server time + protected virtual string TimezoneOffset => "-04:00"; // Avistaz does not specify a timezone & returns server time private readonly HashSet _hdResolutions = new () { "1080p", "1080i", "720p" }; public Action, DateTime?> CookiesUpdater { get; set; } public IList ParseResponse(IndexerResponse indexerResponse) { - var torrentInfos = new List(); + var releaseInfos = new List(); if (indexerResponse.HttpResponse.StatusCode == HttpStatusCode.NotFound) { - return torrentInfos.ToArray(); + return releaseInfos.ToArray(); } if (indexerResponse.HttpResponse.StatusCode == HttpStatusCode.TooManyRequests) @@ -80,11 +80,13 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz release.TvdbId = row.MovieTvinfo.Tvdb.IsNullOrWhiteSpace() ? 0 : ParseUtil.TryCoerceInt(row.MovieTvinfo.Tvdb, out var tvdbResult) ? tvdbResult : 0; } - torrentInfos.Add(release); + releaseInfos.Add(release); } // order by date - return torrentInfos.OrderByDescending(o => o.PublishDate).ToArray(); + return releaseInfos + .OrderByDescending(o => o.PublishDate) + .ToArray(); } // hook to adjust category parsing @@ -115,7 +117,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz cats.Add(NewznabStandardCategory.Audio); break; default: - throw new Exception(string.Format("Error parsing Avistaz category type {0}", row.Type)); + throw new Exception($"Error parsing Avistaz category type {row.Type}"); } return cats;