mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Fix: Newzbin custom parser will now reject full DVD reports.
Fixes bug: ND-31
This commit is contained in:
parent
6d7e886e8c
commit
64a913fb8e
4 changed files with 104 additions and 0 deletions
|
@ -458,6 +458,22 @@ namespace NzbDrone.Core.Test
|
|||
parseResults[0].Age.Should().Be(expectedAge);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void newzbin_should_mark_full_dvd_report_as_unknown()
|
||||
{
|
||||
WithConfiguredIndexers();
|
||||
|
||||
Mocker.GetMock<HttpProvider>()
|
||||
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))
|
||||
.Returns(File.OpenRead(".\\Files\\Rss\\newzbin_full_dvd.xml"));
|
||||
|
||||
//Act
|
||||
var parseResults = Mocker.Resolve<Newzbin>().FetchRss();
|
||||
|
||||
parseResults.Should().HaveCount(1);
|
||||
parseResults[0].Quality.QualityType.Should().Be(QualityTypes.Unknown);
|
||||
}
|
||||
|
||||
private static void Mark500Inconclusive()
|
||||
{
|
||||
ExceptionVerification.MarkInconclusive(typeof(WebException));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue