passthepopcorn: update categories and add year to releases

This commit is contained in:
Bogdan
2023-10-14 09:47:38 +03:00
parent 277192e356
commit 761ed7de13

View File

@@ -83,6 +83,7 @@ namespace Jackett.Common.Indexers
caps.Categories.AddCategoryMapping(3, TorznabCatType.TV, "Miniseries"); caps.Categories.AddCategoryMapping(3, TorznabCatType.TV, "Miniseries");
caps.Categories.AddCategoryMapping(4, TorznabCatType.TV, "Stand-up Comedy"); caps.Categories.AddCategoryMapping(4, TorznabCatType.TV, "Stand-up Comedy");
caps.Categories.AddCategoryMapping(5, TorznabCatType.TV, "Live Performance"); caps.Categories.AddCategoryMapping(5, TorznabCatType.TV, "Live Performance");
caps.Categories.AddCategoryMapping(6, TorznabCatType.Movies, "Movie Collection");
return caps; return caps;
} }
@@ -227,26 +228,26 @@ namespace Jackett.Common.Indexers
var release = new ReleaseInfo var release = new ReleaseInfo
{ {
Guid = link,
Link = link,
Details = details,
Title = releaseName, Title = releaseName,
Description = $"Title: {movieTitle}", Description = $"Title: {movieTitle}",
Year = int.Parse(year),
Category = new List<int> { TorznabCatType.Movies.ID },
Poster = poster, Poster = poster,
Imdb = movieImdbId, Imdb = movieImdbId,
Details = details,
Size = size, Size = size,
Grabs = grabs, Grabs = grabs,
Seeders = seeders, Seeders = seeders,
Peers = seeders + leechers, Peers = seeders + leechers,
PublishDate = publishDate, PublishDate = publishDate,
Link = link,
Guid = link,
MinimumRatio = 1,
MinimumSeedTime = 345600,
DownloadVolumeFactor = free ? 0 : 1, DownloadVolumeFactor = free ? 0 : 1,
UploadVolumeFactor = 1, UploadVolumeFactor = 1,
Category = new List<int> { TorznabCatType.Movies.ID } MinimumRatio = 1,
MinimumSeedTime = 345600
}; };
var titleTags = new List<string>(); var titleTags = new List<string>();
var quality = (string)torrent["Quality"]; var quality = (string)torrent["Quality"];
var container = (string)torrent["Container"]; var container = (string)torrent["Container"];