|
|
@ -43,6 +43,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UseEZTVFormat = true,
|
|
|
|
UseEZTVFormat = true,
|
|
|
|
|
|
|
|
UseEnclosureUrl = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
@ -60,6 +61,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
|
|
|
|
UseEnclosureUrl = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
ParseSizeInDescription = true,
|
|
|
|
ParseSizeInDescription = true,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
@ -77,6 +79,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
|
|
|
|
UseEnclosureUrl = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
ParseSizeInDescription = true,
|
|
|
|
ParseSizeInDescription = true,
|
|
|
|
ParseSeedersInDescription = true,
|
|
|
|
ParseSeedersInDescription = true,
|
|
|
@ -96,6 +99,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
|
|
|
|
UseEnclosureUrl = true,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
@ -113,6 +117,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
|
|
|
|
UseEnclosureUrl = true,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
ParseSizeInDescription = true,
|
|
|
|
ParseSizeInDescription = true,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
@ -130,6 +135,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
|
|
|
|
UseEnclosureUrl = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
@ -137,6 +143,26 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_detect_rss_settings_for_Doki()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_indexerSettings.AllowZeroSize = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GivenRecentFeedResponse("TorrentRss/Doki.xml");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var settings = Subject.Detect(_indexerSettings);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
UseEZTVFormat = false,
|
|
|
|
|
|
|
|
UseEnclosureUrl = true,
|
|
|
|
|
|
|
|
UseEnclosureLength = false,
|
|
|
|
|
|
|
|
ParseSizeInDescription = false,
|
|
|
|
|
|
|
|
ParseSeedersInDescription = false,
|
|
|
|
|
|
|
|
SizeElementName = null
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
[Ignore("Cannot reliably reject unparseable titles")]
|
|
|
|
[Ignore("Cannot reliably reject unparseable titles")]
|
|
|
|
public void should_reject_rss_settings_for_AwesomeHD()
|
|
|
|
public void should_reject_rss_settings_for_AwesomeHD()
|
|
|
|