mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
@@ -48,7 +48,7 @@ namespace NzbDrone.Core.Test.IndexerTests.HDBitsTests
|
|||||||
first.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
|
first.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
|
||||||
first.DownloadUrl.Should().Be("https://hdbits.org/download.php?id=257142&passkey=fakekey");
|
first.DownloadUrl.Should().Be("https://hdbits.org/download.php?id=257142&passkey=fakekey");
|
||||||
first.InfoUrl.Should().Be("https://hdbits.org/details.php?id=257142");
|
first.InfoUrl.Should().Be("https://hdbits.org/details.php?id=257142");
|
||||||
first.PublishDate.Should().Be(DateTime.Parse("2015-04-04T20:30:46+0000"));
|
first.PublishDate.Should().Be(DateTime.Parse("2015-04-04T20:30:46+0000").ToUniversalTime());
|
||||||
first.Size.Should().Be(1718009717);
|
first.Size.Should().Be(1718009717);
|
||||||
first.InfoHash.Should().Be("EABC50AEF9F53CEDED84ADF14144D3368E586F3A");
|
first.InfoHash.Should().Be("EABC50AEF9F53CEDED84ADF14144D3368E586F3A");
|
||||||
first.MagnetUrl.Should().BeNullOrEmpty();
|
first.MagnetUrl.Should().BeNullOrEmpty();
|
||||||
|
@@ -63,7 +63,7 @@ namespace NzbDrone.Core.Indexers.HDBits
|
|||||||
InfoUrl = GetInfoUrl(id),
|
InfoUrl = GetInfoUrl(id),
|
||||||
Seeders = result.Seeders,
|
Seeders = result.Seeders,
|
||||||
Peers = result.Leechers + result.Seeders,
|
Peers = result.Leechers + result.Seeders,
|
||||||
PublishDate = result.Added
|
PublishDate = result.Added.ToUniversalTime()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
|||||||
torrentInfo.Size = torrent.size;
|
torrentInfo.Size = torrent.size;
|
||||||
torrentInfo.DownloadUrl = torrent.download;
|
torrentInfo.DownloadUrl = torrent.download;
|
||||||
torrentInfo.InfoUrl = torrent.info_page;
|
torrentInfo.InfoUrl = torrent.info_page;
|
||||||
torrentInfo.PublishDate = torrent.pubdate;
|
torrentInfo.PublishDate = torrent.pubdate.ToUniversalTime();
|
||||||
torrentInfo.Seeders = torrent.seeders;
|
torrentInfo.Seeders = torrent.seeders;
|
||||||
torrentInfo.Peers = torrent.leechers + torrent.seeders;
|
torrentInfo.Peers = torrent.leechers + torrent.seeders;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user