When I do automatic search for FLCL it find the episode fine but if I do manual search it finds no results.
I only did manual search for the first episode of FLCL. It seems to do a lot of parsing with debug on so I don’t know which bits are relevant or not. http://pastebin.com/LhNF5wZx
14-7-25 01:58:03.2|Error|ReleaseModule|Episode search failed: Division by zero
System.DivideByZeroException: Division by zero
at NzbDrone.Core.DecisionEngine.DownloadDecisionPriorizationService.b__6 (NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision c)
at System.Linq.SortSequenceContext’2[NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision,System.Int64].Initialize (NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision elements)
at System.Linq.SortSequenceContext`2[NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision,System.Int32].Initialize (NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision elements)
at System.Linq.SortSequenceContext’2[NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision,NzbDrone.Core.Qualities.QualityModel].Initialize (NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision elements)
at System.Linq.QuickSort’1[NzbDrone.Core.DecisionEngine.Specifications.DownloadDecision].PerformSort ()
and the culprit:
c => c.RemoteEpisode.Release.Size.Round(200.Megabytes()) / c.RemoteEpisode.Episodes.Count
Just will have to change it to
c => c.RemoteEpisode.Release.Size.Round(200.Megabytes()) / Math.Max(1, c.RemoteEpisode.Episodes.Count)
or
c => c.RemoteEpisode.Release.Size.Round(200.Megabytes()) / Math.Max(0.01, c.RemoteEpisode.Episodes.Count)
Strictly speaking we might be able to do something with the release if the downloaded file contains better numbering, so we shouldn’t exclude it.