mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
HDForever: disable category filtering
This commit is contained in:
@@ -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 DownloadUrl { get { return SiteLink + "torrents.php?action=download&usetoken=" + (useTokens ? "1" : "0") + "&id="; } }
|
||||||
protected string DetailsUrl { get { return SiteLink + "torrents.php?torrentid="; } }
|
protected string DetailsUrl { get { return SiteLink + "torrents.php?torrentid="; } }
|
||||||
protected bool supportsFreeleechTokens;
|
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;
|
protected bool useTokens = false;
|
||||||
|
|
||||||
new ConfigurationDataBasicLogin configData
|
new ConfigurationDataBasicLogin configData
|
||||||
@@ -130,9 +131,12 @@ namespace Jackett.Common.Indexers.Abstract
|
|||||||
if (query.Album != null)
|
if (query.Album != null)
|
||||||
queryCollection.Add("groupname", query.Album);
|
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();
|
searchUrl += "?" + queryCollection.GetQueryString();
|
||||||
|
@@ -22,7 +22,8 @@ namespace Jackett.Common.Indexers
|
|||||||
Language = "fr-fr";
|
Language = "fr-fr";
|
||||||
Type = "private";
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user