Remove validation against 0-length chapters. It is evidently allowed

This commit is contained in:
Robert McRackan 2021-07-04 16:08:30 -04:00
parent 6f31d97763
commit cd3e0dba68

View File

@ -62,7 +62,8 @@ namespace AaxDecrypter
{
ArgumentValidator.EnsureNotNullOrEmpty(title, nameof(title));
ArgumentValidator.EnsureGreaterThan(startOffsetMs, nameof(startOffsetMs), -1);
ArgumentValidator.EnsureGreaterThan(lengthMs, nameof(lengthMs), 0);
// do not validate lengthMs for '> 0'. It is valid to set sections this way. eg: 11-22-63 [B005UR3VFO] by Stephen King
Title = title;
StartOffset = TimeSpan.FromMilliseconds(startOffsetMs);