mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -14,6 +14,7 @@ using Jackett.Common.Utils;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NLog;
|
||||
using static Jackett.Common.Models.IndexerConfig.ConfigurationData;
|
||||
|
||||
namespace Jackett.Common.Indexers
|
||||
{
|
||||
@@ -64,6 +65,8 @@ namespace Jackett.Common.Indexers
|
||||
Language = "en-us";
|
||||
Type = "private";
|
||||
|
||||
configData.AddDynamic("freeleech", new BoolItem { Name = "Search freeleech only", Value = false });
|
||||
|
||||
AddCategoryMapping(1, TorznabCatType.Movies, "Movies");
|
||||
AddCategoryMapping(8, TorznabCatType.MoviesSD, "Movies Cam");
|
||||
AddCategoryMapping(9, TorznabCatType.MoviesSD, "Movies TS/TC");
|
||||
@@ -151,6 +154,10 @@ namespace Jackett.Common.Indexers
|
||||
searchString = Regex.Replace(searchString, @"(^|\s)-", " ");
|
||||
|
||||
var searchUrl = SearchUrl;
|
||||
|
||||
if (((BoolItem) configData.GetDynamic("freeleech")).Value)
|
||||
searchUrl += "facets/tags%3AFREELEECH/";
|
||||
|
||||
if (query.IsImdbQuery)
|
||||
searchUrl += "imdbID/" + query.ImdbID + "/";
|
||||
else if (!string.IsNullOrWhiteSpace(searchString))
|
||||
|
Reference in New Issue
Block a user