From c179e715a6ff0f788bf6295f0c2a56dff4036805 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 24 Aug 2013 21:28:07 -0700 Subject: [PATCH] Parsing tvrage id from newznab with TryParse now --- NzbDrone.Core/Indexers/Newznab/NewznabParser.cs | 7 ++++++- NzbDrone.Core/Tv/RefreshSeriesService.cs | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core/Indexers/Newznab/NewznabParser.cs b/NzbDrone.Core/Indexers/Newznab/NewznabParser.cs index 50bf84991..1e1376569 100644 --- a/NzbDrone.Core/Indexers/Newznab/NewznabParser.cs +++ b/NzbDrone.Core/Indexers/Newznab/NewznabParser.cs @@ -33,7 +33,12 @@ protected override ReportInfo PostProcessor(XElement item, ReportInfo currentRes if (rageIdElement != null) { - currentResult.TvRageId = Convert.ToInt32(rageIdElement.Attribute("value").Value); + int tvRageId; + + if (Int32.TryParse(rageIdElement.Attribute("value").Value, out tvRageId)) + { + currentResult.TvRageId = tvRageId; + } } } diff --git a/NzbDrone.Core/Tv/RefreshSeriesService.cs b/NzbDrone.Core/Tv/RefreshSeriesService.cs index 08c3aaf0f..bbdb8e472 100644 --- a/NzbDrone.Core/Tv/RefreshSeriesService.cs +++ b/NzbDrone.Core/Tv/RefreshSeriesService.cs @@ -93,14 +93,10 @@ private void RefreshSeriesInfo(Series series) _logger.WarnException("Couldn't update series path for " + series.Path, e); } - _seriesService.UpdateSeries(series); - _refreshEpisodeService.RefreshEpisodeInfo(series, tuple.Item2); _messageAggregator.PublishEvent(new SeriesUpdatedEvent(series)); } - - } } \ No newline at end of file