From 3f444406da0649ee7b0dc8410eebefe4b28c0860 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 4 Dec 2023 12:34:22 +0200 Subject: [PATCH] Fixed: (PassThePopcorn) Support for half leech releases --- .../Indexers/PassThePopcorn/PassThePopcornParser.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs index a304b11b0..fe67cb727 100644 --- a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs +++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs @@ -59,9 +59,14 @@ public IList ParseResponse(IndexerResponse indexerResponse) flags |= IndexerFlags.PTP_Approved; } - if (torrent.FreeleechType == "Freeleech") + switch (torrent.FreeleechType?.ToUpperInvariant()) { - flags |= IndexerFlags.G_Freeleech; + case "FREELEECH": + flags |= IndexerFlags.G_Freeleech; + break; + case "HALF LEECH": + flags |= IndexerFlags.G_Halfleech; + break; } if (torrent.Scene)