|
|
|
@ -22,10 +22,10 @@ namespace NzbDrone.Core.Test.IndexerTests.AvistazTests
|
|
|
|
|
[SetUp]
|
|
|
|
|
public void Setup()
|
|
|
|
|
{
|
|
|
|
|
Subject.Definition = new IndexerDefinition()
|
|
|
|
|
Subject.Definition = new IndexerDefinition
|
|
|
|
|
{
|
|
|
|
|
Name = "ExoticaZ",
|
|
|
|
|
Settings = new AvistazSettings() { Username = "someuser", Password = "somepass", Pid = "somepid" }
|
|
|
|
|
Settings = new AvistazSettings { Username = "someuser", Password = "somepass", Pid = "somepid" }
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ namespace NzbDrone.Core.Test.IndexerTests.AvistazTests
|
|
|
|
|
.Setup(o => o.ExecuteProxiedAsync(It.Is<HttpRequest>(v => v.Method == HttpMethod.Get), Subject.Definition))
|
|
|
|
|
.Returns<HttpRequest, IndexerDefinition>((r, d) => Task.FromResult(new HttpResponse(r, new HttpHeader { { "Content-Type", "application/json" } }, new CookieCollection(), recentFeed)));
|
|
|
|
|
|
|
|
|
|
var releases = (await Subject.Fetch(new MovieSearchCriteria { Categories = new int[] { 2000 } })).Releases;
|
|
|
|
|
var releases = (await Subject.Fetch(new MovieSearchCriteria { Categories = new[] { 2000 } })).Releases;
|
|
|
|
|
|
|
|
|
|
releases.Should().HaveCount(100);
|
|
|
|
|
releases.First().Should().BeOfType<TorrentInfo>();
|
|
|
|
@ -51,7 +51,7 @@ namespace NzbDrone.Core.Test.IndexerTests.AvistazTests
|
|
|
|
|
torrentInfo.InfoUrl.Should().Be("https://exoticaz.to/torrent/64040-ssis-419-my-first-experience-is-yua-mikami-from-the-day-i-lost-my-virginity-i-was-devoted-to-sex");
|
|
|
|
|
torrentInfo.CommentUrl.Should().BeNullOrEmpty();
|
|
|
|
|
torrentInfo.Indexer.Should().Be(Subject.Definition.Name);
|
|
|
|
|
torrentInfo.PublishDate.Should().Be(DateTime.Parse("2022-06-11 16:04:50"));
|
|
|
|
|
torrentInfo.PublishDate.Should().Be(DateTime.Parse("2022-06-11 15:04:50"));
|
|
|
|
|
torrentInfo.Size.Should().Be(7085405541);
|
|
|
|
|
torrentInfo.InfoHash.Should().Be("asdjfiasdf54asd7f4a2sdf544asdf");
|
|
|
|
|
torrentInfo.MagnetUrl.Should().Be(null);
|
|
|
|
|