mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
mark parse as invalid if last episode is before first.
This commit is contained in:
parent
b21e49f5fa
commit
31d472a0a0
2 changed files with 11 additions and 11 deletions
|
@ -184,7 +184,14 @@ namespace NzbDrone.Core.Parser
|
|||
{
|
||||
var first = Convert.ToInt32(episodeCaptures.First().Value);
|
||||
var last = Convert.ToInt32(episodeCaptures.Last().Value);
|
||||
result.EpisodeNumbers = Enumerable.Range(first, last - first + 1).ToArray();
|
||||
|
||||
if (first > last)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var count = last - first + 1;
|
||||
result.EpisodeNumbers = Enumerable.Range(first, count).ToArray();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue