mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-04 15:54:33 +00:00
Parsing tvrage id from newznab with TryParse now
This commit is contained in:
@@ -33,7 +33,12 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,14 +93,10 @@ namespace NzbDrone.Core.Tv
|
||||
_logger.WarnException("Couldn't update series path for " + series.Path, e);
|
||||
}
|
||||
|
||||
|
||||
_seriesService.UpdateSeries(series);
|
||||
|
||||
_refreshEpisodeService.RefreshEpisodeInfo(series, tuple.Item2);
|
||||
|
||||
_messageAggregator.PublishEvent(new SeriesUpdatedEvent(series));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user