mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Safety net to handle MaxSize=0. Some users still have 0 = unlimited in their db and migration failed for them.
This commit is contained in:
parent
b59175a87c
commit
221f3ef08c
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
||||||
return Decision.Reject("{0} is smaller than minimum allowed: {1}", subject.Release.Size.SizeSuffix(), minSize.SizeSuffix());
|
return Decision.Reject("{0} is smaller than minimum allowed: {1}", subject.Release.Size.SizeSuffix(), minSize.SizeSuffix());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!qualityDefinition.MaxSize.HasValue)
|
if (!qualityDefinition.MaxSize.HasValue || qualityDefinition.MaxSize.Value == 0)
|
||||||
{
|
{
|
||||||
_logger.Debug("Max size is unlimited - skipping check.");
|
_logger.Debug("Max size is unlimited - skipping check.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue