From 761ed7de1336c4c99740f5565d075bc2c5ae33ae Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 14 Oct 2023 09:47:38 +0300 Subject: [PATCH] passthepopcorn: update categories and add year to releases --- src/Jackett.Common/Indexers/PassThePopcorn.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Jackett.Common/Indexers/PassThePopcorn.cs b/src/Jackett.Common/Indexers/PassThePopcorn.cs index c411bfda5..f70535caa 100644 --- a/src/Jackett.Common/Indexers/PassThePopcorn.cs +++ b/src/Jackett.Common/Indexers/PassThePopcorn.cs @@ -83,6 +83,7 @@ namespace Jackett.Common.Indexers caps.Categories.AddCategoryMapping(3, TorznabCatType.TV, "Miniseries"); caps.Categories.AddCategoryMapping(4, TorznabCatType.TV, "Stand-up Comedy"); caps.Categories.AddCategoryMapping(5, TorznabCatType.TV, "Live Performance"); + caps.Categories.AddCategoryMapping(6, TorznabCatType.Movies, "Movie Collection"); return caps; } @@ -227,26 +228,26 @@ namespace Jackett.Common.Indexers var release = new ReleaseInfo { + Guid = link, + Link = link, + Details = details, Title = releaseName, Description = $"Title: {movieTitle}", + Year = int.Parse(year), + Category = new List { TorznabCatType.Movies.ID }, Poster = poster, Imdb = movieImdbId, - Details = details, Size = size, Grabs = grabs, Seeders = seeders, Peers = seeders + leechers, PublishDate = publishDate, - Link = link, - Guid = link, - MinimumRatio = 1, - MinimumSeedTime = 345600, DownloadVolumeFactor = free ? 0 : 1, UploadVolumeFactor = 1, - Category = new List { TorznabCatType.Movies.ID } + MinimumRatio = 1, + MinimumSeedTime = 345600 }; - var titleTags = new List(); var quality = (string)torrent["Quality"]; var container = (string)torrent["Container"];