diff --git a/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/LimeTorrents.xml b/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/LimeTorrents.xml
new file mode 100644
index 000000000..8c136e7f1
--- /dev/null
+++ b/src/NzbDrone.Core.Test/Files/Indexers/TorrentRss/LimeTorrents.xml
@@ -0,0 +1,98 @@
+
+
+
+ limetorrents.cc - RSS Feed
+ http://www.limetorrents.cc/
+ Latest Torrents RSS.
+ en-us
+ Thu, 16 Feb 2017 05:48:36 +0200
+ Thu, 16 Feb 2017 05:48:36 +0200
+ http://blogs.law.harvard.edu/tech/rss
+ limetorrents.cc RSS Generator 1.1
+ -
+ The Expanse 2x04 (720p-HDTV-x264-SVA)[VTV]
+ http://www.limetorrents.cc/The-Expanse-2x04-(720p-HDTV-x264-SVA)[VTV]-torrent-8643587.html
+ 16 Feb 2017 05:24:26 +0300
+ TV shows
+ http://www.limetorrents.cc/The-Expanse-2x04-(720p-HDTV-x264-SVA)[VTV]-torrent-8643587.html
+ 880496711
+
+ TV shows
+ Seeds: 0
Leechers: 0
Size: 839.71 MB
More @ limetorrents.cc
]]>
+
+
+ http://www.limetorrents.cc/The-Expanse-2x04-(720p-HDTV-x264-SVA)[VTV]-torrent-8643587.html
+ TV shows
+
+
+ -
+ Criminal Minds S12E13 720p HDTV x264-FLEET[PRiME]
+ http://www.limetorrents.cc/Criminal-Minds-S12E13-720p-HDTV-x264-FLEET[PRiME]-torrent-8643586.html
+ 16 Feb 2017 05:20:49 +0300
+ TV shows
+ http://www.limetorrents.cc/Criminal-Minds-S12E13-720p-HDTV-x264-FLEET[PRiME]-torrent-8643586.html
+ 940818158
+
+ TV shows
+ Seeds: 0
Leechers: 0
Size: 897.23 MB
More @ limetorrents.cc
]]>
+
+
+ http://www.limetorrents.cc/Criminal-Minds-S12E13-720p-HDTV-x264-FLEET[PRiME]-torrent-8643586.html
+ TV shows
+
+
+ -
+ Legion S01E02 720p HDTV x264-AVS[PRiME]
+ http://www.limetorrents.cc/Legion-S01E02-720p-HDTV-x264-AVS[PRiME]-torrent-8643585.html
+ 16 Feb 2017 05:20:48 +0300
+ TV shows
+ http://www.limetorrents.cc/Legion-S01E02-720p-HDTV-x264-AVS[PRiME]-torrent-8643585.html
+ 1320654292
+
+ TV shows
+ Seeds: 0
Leechers: 0
Size: 1.23 GB
More @ limetorrents.cc
]]>
+
+
+ http://www.limetorrents.cc/Legion-S01E02-720p-HDTV-x264-AVS[PRiME]-torrent-8643585.html
+ TV shows
+
+
+ -
+ Suits S06E14 HDTV x264-SVA[PRiME]
+ http://www.limetorrents.cc/Suits-S06E14-HDTV-x264-SVA[PRiME]-torrent-8643579.html
+ 16 Feb 2017 05:11:58 +0300
+ TV shows
+ http://www.limetorrents.cc/Suits-S06E14-HDTV-x264-SVA[PRiME]-torrent-8643579.html
+ 212274667
+
+ TV shows
+ Seeds: 0
Leechers: 0
Size: 202.44 MB
More @ limetorrents.cc
]]>
+
+
+ http://www.limetorrents.cc/Suits-S06E14-HDTV-x264-SVA[PRiME]-torrent-8643579.html
+ TV shows
+
+
+ -
+ The Expanse S02E04 HDTV x264-SVA[PRiME]
+ http://www.limetorrents.cc/The-Expanse-S02E04-HDTV-x264-SVA[PRiME]-torrent-8643578.html
+ 16 Feb 2017 05:11:57 +0300
+ TV shows
+ http://www.limetorrents.cc/The-Expanse-S02E04-HDTV-x264-SVA[PRiME]-torrent-8643578.html
+ 269445781
+
+ TV shows
+ Seeds: 0
Leechers: 0
Size: 256.96 MB
More @ limetorrents.cc
]]>
+
+
+ http://www.limetorrents.cc/The-Expanse-S02E04-HDTV-x264-SVA[PRiME]-torrent-8643578.html
+ TV shows
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssIndexerFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssIndexerFixture.cs
index 0da791a4e..175425599 100644
--- a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssIndexerFixture.cs
+++ b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssIndexerFixture.cs
@@ -173,6 +173,32 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
torrentInfo.Seeders.Should().NotHaveValue();
}
+ [Test]
+ public void should_parse_recent_feed_from_LimeTorrents()
+ {
+ GivenRecentFeedResponse("TorrentRss/LimeTorrents.xml");
+
+ var releases = Subject.FetchRecent();
+
+ releases.Should().HaveCount(5);
+ releases.First().Should().BeOfType();
+
+ var torrentInfo = releases.First() as TorrentInfo;
+
+ torrentInfo.Title.Should().Be("The Expanse 2x04 (720p-HDTV-x264-SVA)[VTV]");
+ torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
+ torrentInfo.DownloadUrl.Should().Be("http://itorrents.org/torrent/51C578C9823DD58F6EEA287C368ED935843D63AB.torrent?title=The-Expanse-2x04-(720p-HDTV-x264-SVA)[VTV]");
+ torrentInfo.InfoUrl.Should().BeNullOrEmpty();
+ torrentInfo.CommentUrl.Should().Be("http://www.limetorrents.cc/The-Expanse-2x04-(720p-HDTV-x264-SVA)[VTV]-torrent-8643587.html");
+ torrentInfo.Indexer.Should().Be(Subject.Definition.Name);
+ torrentInfo.PublishDate.Should().Be(DateTime.Parse("16 Feb 2017 05:24:26 +0300").ToUniversalTime());
+ torrentInfo.Size.Should().Be(880496711);
+ torrentInfo.InfoHash.Should().BeNull();
+ torrentInfo.MagnetUrl.Should().BeNull();
+ torrentInfo.Peers.Should().NotHaveValue();
+ torrentInfo.Seeders.Should().NotHaveValue();
+ }
+
[Test]
public void should_parse_recent_feed_from_AnimeTosho_without_size()
{
diff --git a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs
index ed26fd54e..1c6afaa25 100644
--- a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs
+++ b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs
@@ -180,6 +180,26 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
});
}
+ [Test]
+ public void should_detect_rss_settings_for_LimeTorrents()
+ {
+ _indexerSettings.AllowZeroSize = true;
+
+ GivenRecentFeedResponse("TorrentRss/LimeTorrents.xml");
+
+ var settings = Subject.Detect(_indexerSettings);
+
+ settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ {
+ UseEZTVFormat = false,
+ UseEnclosureUrl = true,
+ UseEnclosureLength = true,
+ ParseSizeInDescription = false,
+ ParseSeedersInDescription = false,
+ SizeElementName = null
+ });
+ }
+
[Test]
[Ignore("Cannot reliably reject unparseable titles")]
public void should_reject_rss_settings_for_AwesomeHD()
diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
index b6c262c07..3030aabf5 100644
--- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
+++ b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
@@ -419,6 +419,9 @@
sqlite3.dll
Always
+
+ Always
+
Always