From f6e2082d3da205fa25a9df3a9e10dba065da9334 Mon Sep 17 00:00:00 2001 From: KZ Date: Sun, 26 Jul 2015 01:17:19 +0100 Subject: [PATCH] BakaBT fix minium ratio not set --- README.md | 1 + src/Jackett.Test/Indexers/BakaBTTests.cs | 1 + src/Jackett/Indexers/BakaBT.cs | 2 ++ 3 files changed, 4 insertions(+) diff --git a/README.md b/README.md index c971afe73..06159b685 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Download in the [Releases page](https://github.com/zone117x/Jackett/releases) * [FrenchTorrentDb](http://www.frenchtorrentdb.com/) * [bB](http://reddit.com/r/baconbits) * [PrivateHD](https://privatehd.to/) + * [BakaBT](http://bakabt.me/) ### Additional Trackers diff --git a/src/Jackett.Test/Indexers/BakaBTTests.cs b/src/Jackett.Test/Indexers/BakaBTTests.cs index a514ea4e1..0b9b471eb 100644 --- a/src/Jackett.Test/Indexers/BakaBTTests.cs +++ b/src/Jackett.Test/Indexers/BakaBTTests.cs @@ -167,6 +167,7 @@ namespace JackettTest.Indexers results[0].Link.Should().Be("http://bakabt.me/torrent/180302/golden-time-bd-720p-fff"); results[0].Peers.Should().Be(161); results[0].Seeders.Should().Be(151); + results[0].MinimumRatio.Should().Be(1); results[1].Title.Should().Be("Yowamushi Pedal Season 1 (BD 720p) [Commie]"); results[4].Title.Should().Be("Dungeon ni Deai o Motomeru no wa Machigatte Iru Darouka: Familia Myth Season 1 (480p) [HorribleSubs]"); diff --git a/src/Jackett/Indexers/BakaBT.cs b/src/Jackett/Indexers/BakaBT.cs index 87b106d32..c239b8be1 100644 --- a/src/Jackett/Indexers/BakaBT.cs +++ b/src/Jackett/Indexers/BakaBT.cs @@ -183,6 +183,8 @@ namespace Jackett.Indexers release.Seeders = int.Parse(qRow.Find(".peers a").Get(0).InnerText); release.Peers = release.Seeders + int.Parse(qRow.Find(".peers a").Get(1).InnerText); + release.MinimumRatio = 1; + var size = qRow.Find(".size").First().Text().Split(' '); release.Size = ReleaseInfo.GetBytes(size[1], ParseUtil.CoerceFloat(size[0]));