From a5be71fd8c8828f48415b66f742b4277ace89ced Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 6 Jun 2013 16:05:06 -0700 Subject: [PATCH] unknow quality is rejected by AcceptableSizeSpecification --- .../AcceptableSizeSpecificationFixture.cs | 15 +++++++++++++++ .../AcceptableSizeSpecification.cs | 18 ++++++++++++------ UI/Content/Images/poster-dark.jpg | Bin 0 -> 12409 bytes UI/MainMenuView.js | 4 ++-- 4 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 UI/Content/Images/poster-dark.jpg diff --git a/NzbDrone.Core.Test/DecisionEngineTests/AcceptableSizeSpecificationFixture.cs b/NzbDrone.Core.Test/DecisionEngineTests/AcceptableSizeSpecificationFixture.cs index 9b890506b..a7d064f47 100644 --- a/NzbDrone.Core.Test/DecisionEngineTests/AcceptableSizeSpecificationFixture.cs +++ b/NzbDrone.Core.Test/DecisionEngineTests/AcceptableSizeSpecificationFixture.cs @@ -379,5 +379,20 @@ namespace NzbDrone.Core.Test.DecisionEngineTests Subject.IsSatisfiedBy(parseResult).Should().BeTrue(); } + + + [Test] + public void should_always_return_false_if_unknow() + { + var parseResult = new RemoteEpisode + { + ParsedEpisodeInfo = new ParsedEpisodeInfo { Quality = new QualityModel(Quality.Unknown, false) }, + }; + + Subject.IsSatisfiedBy(parseResult).Should().BeFalse(); + + + Mocker.GetMock().Verify(c=>c.Get(It.IsAny()),Times.Never()); + } } } \ No newline at end of file diff --git a/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs b/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs index 7184e9efc..436040a17 100644 --- a/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs +++ b/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs @@ -26,15 +26,24 @@ namespace NzbDrone.Core.DecisionEngine.Specifications public virtual bool IsSatisfiedBy(RemoteEpisode subject) { + _logger.Trace("Beginning size check for: {0}", subject); - if (subject.ParsedEpisodeInfo.Quality.Quality == Quality.RAWHD) + var quality = subject.ParsedEpisodeInfo.Quality.Quality; + + if (quality == Quality.RAWHD) { _logger.Trace("Raw-HD release found, skipping size check."); return true; } - var qualityType = _qualityTypeProvider.Get((int)subject.ParsedEpisodeInfo.Quality.Quality); + if (quality == Quality.Unknown) + { + _logger.Trace("Unknown quality. skipping size check."); + return false; + } + + var qualityType = _qualityTypeProvider.Get(quality.Id); if (qualityType.MaxSize == 0) { @@ -43,12 +52,9 @@ namespace NzbDrone.Core.DecisionEngine.Specifications } var maxSize = qualityType.MaxSize.Megabytes(); - var series = subject.Series; //Multiply maxSize by Series.Runtime - maxSize = maxSize * series.Runtime; - - maxSize = maxSize * subject.Episodes.Count; + maxSize = maxSize * subject.Series.Runtime * subject.Episodes.Count; //Check if there was only one episode parsed //and it is the first or last episode of the season diff --git a/UI/Content/Images/poster-dark.jpg b/UI/Content/Images/poster-dark.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dfe5b73027e419d4958fffe9472ed393f1e110de GIT binary patch literal 12409 zcmaKS3piBY*Z)4p9L9_oV`iwNF-8r>or;tp6x{)L)il{^+|LObwe!uts{Ga#z?`NKQ&RJ)#wb$PJv-aL=?KSsu?j2CG zPYB-xfRmFhz=HoSb6LZTuJ z6M~`*jSY+pft7VabWq5)usCXP*yixaRkW{HTWHkq&{Z^Fb5|qR=rv(m!W|Q1!n_jQ zI3bDKLM%dQ)~l&j36=>F(Gg*BLDYnZ?UAvT39D%T2)C3z|0NsJsQ*-n+qQ~k^S4zh z*Og6O6BQFiH8(KT4>2+}rY>7%U~Fc-Y?(2WYGPz;VrV4&Ez>tPvov33X|kO9uR@cy z78AP3($mi2Uu{X>R?+^|sa?Bv8SFAOh>F>4Xl!9&@mGe4iN3Uke(dhZxS$06$XKm^ zORx)z4T%Yljth^9r2dr{6dV;Fw~8j!^uM|g5&a*r|KnKwUlm*ey}f z)HPnqs0`PjknqUA1f734TwN`lB4gu%B16KQ>{ijFG7Q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?~!U7DB+)NeRSAS>swR_s_?2Fwz%>|rDW zHM6b7FnF>-0y0p;hya6)VL%>{JSz*n%#>=Q7$h8}jw`c()P{xNGDdn}V@pR!E$Mv$ zDPQl&MXlw)RVme&KR^UlOUnKCiX7C>IN0ssy`x6 zl=wp=GL)r*wD|zYgH4fUE%9*!*$a8=gG;j?KpqOYDV1hHdI#(lY|m`JBk`Q zPuU(10|;R63W3bggoL9;`f~OAh2)gYfA7w9{j$p{h-F^1l8Zo4sf&7KGx3OT6_Zgo+}G9+U>zQW#WlfC_15{7v9_Zbz_Z zi3E^e#(?uCodTSICOFH};+qsZ3E|t(GDb8GV#o7O#f(9ooNMWAh)uAV2xJjS6RfJs zS9Syz0NUz88K@X>2U}1I}OGQV0VpYOVgvejWAid&W3677=UN%!lji# z=+f;t0}IqE%a9*l$Ux4+wkc1rI0huV=mZNd(qYKNkwkQ%%G?@<`Y=V${0Wx&aPQ`Cbs7Qg>nk+Uu8J1vu7#MNW7H!Cayi2xI zo@JqEn+i)p35X_72sd%DUILUPXoE~i`fZ?5{iQTCOCiC(@EN#hC|dAERXXadCY&^9 zAqFVySKNXjN>}ym%NP!bJETd#Q&rlat!t%sv<((bNvPiqxB&Q$Yi^`TH&!+#`}!Cr z>Gl9nv@Mk8FHmteScNGWeC6%BdP2x1KoA3&VPYwILhA9niv|F|g(_K&uuvO!BNk#D Q^Q?=ePeD##-`uPJ14Dw~i2wiq literal 0 HcmV?d00001 diff --git a/UI/MainMenuView.js b/UI/MainMenuView.js index 28748dd86..c37882dfb 100644 --- a/UI/MainMenuView.js +++ b/UI/MainMenuView.js @@ -1,6 +1,6 @@ "use strict"; define(['app'], function () { - NzbDrone.MainMenuView = Backbone.Marionette.ItemView.extend({ + var MainMenuView = Backbone.Marionette.ItemView.extend({ events: { 'click a': 'onClick' }, @@ -37,6 +37,6 @@ define(['app'], function () { } }); + return new MainMenuView(); - return new NzbDrone.MainMenuView(); });