mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 23:45:46 +02:00
Adding series with a ID of 0 is now blocked.
This commit is contained in:
@@ -104,6 +104,11 @@ namespace NzbDrone.Core.Providers
|
||||
{
|
||||
Logger.Info("Adding Series [{0}] Path: [{1}]", tvDbSeriesId, path);
|
||||
|
||||
if (tvDbSeriesId <=0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("tvDbSeriesId", tvDbSeriesId.ToString());
|
||||
}
|
||||
|
||||
var repoSeries = new Series();
|
||||
repoSeries.SeriesId = tvDbSeriesId;
|
||||
repoSeries.Path = path;
|
||||
|
Reference in New Issue
Block a user