mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Added test for Newzbin release group
This commit is contained in:
parent
0d40e2d43e
commit
2a316e0b98
3 changed files with 19 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<rss version="2.0" xml:lang="en-GB"
|
<rss version="2.0" xml:lang="en-GB"
|
||||||
xmlns:report="http://www.newzbin.com/DTD/2007/feeds/report/">
|
xmlns:report="http://www.newzbin2.es/DTD/2007/feeds/report/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>www.newzbin.com (reports)</title>
|
<title>www.newzbin.com (reports)</title>
|
||||||
<link>http://www.newzbin.com/browse/category/p/tv/</link>
|
<link>http://www.newzbin.com/browse/category/p/tv/</link>
|
||||||
|
@ -63,7 +63,7 @@ xmlns:report="http://www.newzbin.com/DTD/2007/feeds/report/">
|
||||||
<report:moreinfo>http://www.tvrage.com/Rookie_Blue/episodes/1064943067/1x10/</report:moreinfo>
|
<report:moreinfo>http://www.tvrage.com/Rookie_Blue/episodes/1064943067/1x10/</report:moreinfo>
|
||||||
<report:nfo>
|
<report:nfo>
|
||||||
<report:fileid>373966350</report:fileid>
|
<report:fileid>373966350</report:fileid>
|
||||||
<report:filename>tvp-rookieblue-s01e10-720p.nfo</report:filename>
|
<report:filename>rookieblue-s01e10-720p-tvp.nfo</report:filename>
|
||||||
<report:link>http://www.newzbin.com/nfo/view/txt/373966350/</report:link>
|
<report:link>http://www.newzbin.com/nfo/view/txt/373966350/</report:link>
|
||||||
</report:nfo>
|
</report:nfo>
|
||||||
<report:nzb>http://www.newzbin.com/browse/post/6076287/nzb/</report:nzb>
|
<report:nzb>http://www.newzbin.com/browse/post/6076287/nzb/</report:nzb>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<rss version="2.0" xml:lang="en-GB"
|
<rss version="2.0" xml:lang="en-GB"
|
||||||
xmlns:report="http://www.newzbin.com/DTD/2007/feeds/report/">
|
xmlns:report="http://www.newzbin2.es/DTD/2007/feeds/report/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>www.newzbin.com (reports)</title>
|
<title>www.newzbin.com (reports)</title>
|
||||||
<link>http://www.newzbin.com/browse/category/p/tv/</link>
|
<link>http://www.newzbin.com/browse/category/p/tv/</link>
|
||||||
|
|
|
@ -692,5 +692,21 @@ namespace NzbDrone.Core.Test
|
||||||
episodeParseResult.NzbInfoUrl.Should().Contain(expectedString);
|
episodeParseResult.NzbInfoUrl.Should().Contain(expectedString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void releaseGroup_should_use_nfo_filename_for_newzbin()
|
||||||
|
{
|
||||||
|
WithConfiguredIndexers();
|
||||||
|
|
||||||
|
Mocker.GetMock<HttpProvider>()
|
||||||
|
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))
|
||||||
|
.Returns(File.OpenRead(".\\Files\\Rss\\SizeParsing\\newzbin.xml"));
|
||||||
|
|
||||||
|
//Act
|
||||||
|
var parseResults = Mocker.Resolve<Newzbin>().FetchRss();
|
||||||
|
|
||||||
|
parseResults.Should().HaveCount(1);
|
||||||
|
parseResults[0].ReleaseGroup.Should().Be("tvp");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue