mirror of https://github.com/lidarr/Lidarr
Fix freeleech tests
This commit is contained in:
parent
58e23c934b
commit
3523eb6394
|
@ -55,7 +55,7 @@ namespace NzbDrone.Core.Test.IndexerTests.GazelleTests
|
|||
releaseInfo.Title.Should().Be("Shania Twain - Shania Twain (1993) [FLAC 24bit Lossless] [WEB]");
|
||||
releaseInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
|
||||
releaseInfo.DownloadUrl.Should()
|
||||
.Be("http://someurl.ch/torrents.php?action=download&id=1541452&authkey=redacted&torrent_pass=redacted");
|
||||
.Be("http://someurl.ch/torrents.php?action=download&id=1541452&authkey=redacted&torrent_pass=redacted&usetoken=0");
|
||||
releaseInfo.InfoUrl.Should().Be("http://someurl.ch/torrents.php?id=106951&torrentid=1541452");
|
||||
releaseInfo.CommentUrl.Should().Be(null);
|
||||
releaseInfo.Indexer.Should().Be(Subject.Definition.Name);
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace NzbDrone.Core.Test.IndexerTests.GazelleTests
|
|||
releaseInfo.Title.Should().Be("Shania Twain - Shania Twain (1993) [FLAC 24bit Lossless] [WEB]");
|
||||
releaseInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
|
||||
releaseInfo.DownloadUrl.Should()
|
||||
.Be("https://redacted.ch/torrents.php?action=download&id=1541452&authkey=lidarr&torrent_pass=redacted");
|
||||
.Be("https://redacted.ch/torrents.php?action=download&id=1541452&authkey=lidarr&torrent_pass=redacted&usetoken=0");
|
||||
releaseInfo.InfoUrl.Should().Be("https://redacted.ch/torrents.php?id=106951&torrentid=1541452");
|
||||
releaseInfo.CommentUrl.Should().Be(null);
|
||||
releaseInfo.Indexer.Should().Be(Subject.Definition.Name);
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace NzbDrone.Core.Indexers.Redacted
|
|||
.AddQueryParam("id", torrentId)
|
||||
.AddQueryParam("authkey", "lidarr")
|
||||
.AddQueryParam("torrent_pass", _settings.PassKey)
|
||||
.AddQueryParam("usetoken", _settings.UseFreeleechToken);
|
||||
.AddQueryParam("usetoken", _settings.UseFreeleechToken ? 1 : 0);
|
||||
|
||||
return url.FullUri;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue