Automatic search works fine but Manual comes up with no results

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

Manual search returns results properly for me for the same series and episode and I see results being returned in your logs as expected.

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

I get the same if I enable dognzb, but not if I only use Fanzub.

Not going to be able to do anything with the result if there isn’t an episode attached, so we could exclude it, unless we want to still return it?

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.

Thanks! It seems to be fixed now.