mirror of
https://github.com/Jackett/Jackett
synced 2025-02-23 06:40:57 +00:00
HDForever: disable category filtering
This commit is contained in:
parent
1352d1528a
commit
ebcb82ed80
2 changed files with 9 additions and 4 deletions
|
@ -23,6 +23,7 @@ namespace Jackett.Common.Indexers.Abstract
|
|||
protected string DownloadUrl { get { return SiteLink + "torrents.php?action=download&usetoken=" + (useTokens ? "1" : "0") + "&id="; } }
|
||||
protected string DetailsUrl { get { return SiteLink + "torrents.php?torrentid="; } }
|
||||
protected bool supportsFreeleechTokens;
|
||||
protected bool supportsCategories = true; // set to false if the tracker doesn't include the categories in the API search results
|
||||
protected bool useTokens = false;
|
||||
|
||||
new ConfigurationDataBasicLogin configData
|
||||
|
@ -130,9 +131,12 @@ namespace Jackett.Common.Indexers.Abstract
|
|||
if (query.Album != null)
|
||||
queryCollection.Add("groupname", query.Album);
|
||||
|
||||
foreach (var cat in MapTorznabCapsToTrackers(query))
|
||||
if (supportsCategories)
|
||||
{
|
||||
queryCollection.Add("filter_cat[" + cat + "]", "1");
|
||||
foreach (var cat in MapTorznabCapsToTrackers(query))
|
||||
{
|
||||
queryCollection.Add("filter_cat[" + cat + "]", "1");
|
||||
}
|
||||
}
|
||||
|
||||
searchUrl += "?" + queryCollection.GetQueryString();
|
||||
|
|
|
@ -22,7 +22,8 @@ namespace Jackett.Common.Indexers
|
|||
Language = "fr-fr";
|
||||
Type = "private";
|
||||
|
||||
AddCategoryMapping(1, TorznabCatType.MoviesHD, "Movies/HD");
|
||||
this.supportsCategories = false; // they have categories but the API never returns the category, always default to Movie
|
||||
AddCategoryMapping(1, TorznabCatType.MoviesHD, "Movie");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue