mirror of https://github.com/Jackett/Jackett
parent
3a004dcde4
commit
0c2c043554
|
@ -18,7 +18,7 @@ namespace Jackett.Common.Indexers
|
||||||
[ExcludeFromCodeCoverage]
|
[ExcludeFromCodeCoverage]
|
||||||
public class BroadcasTheNet : BaseWebIndexer
|
public class BroadcasTheNet : BaseWebIndexer
|
||||||
{
|
{
|
||||||
// Docs at http://apidocs.broadcasthe.net/docs.php
|
// based on https://github.com/Prowlarr/Prowlarr/tree/develop/src/NzbDrone.Core/Indexers/Definitions/BroadcastheNet
|
||||||
private readonly string APIBASE = "https://api.broadcasthe.net";
|
private readonly string APIBASE = "https://api.broadcasthe.net";
|
||||||
|
|
||||||
// TODO: remove ConfigurationDataAPIKey class and use ConfigurationDataPasskey instead
|
// TODO: remove ConfigurationDataAPIKey class and use ConfigurationDataPasskey instead
|
||||||
|
@ -40,7 +40,7 @@ namespace Jackett.Common.Indexers
|
||||||
LimitsMax = 1000,
|
LimitsMax = 1000,
|
||||||
TvSearchParams = new List<TvSearchParam>
|
TvSearchParams = new List<TvSearchParam>
|
||||||
{
|
{
|
||||||
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep
|
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.TvdbId
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
configService: configService,
|
configService: configService,
|
||||||
|
@ -103,6 +103,8 @@ namespace Jackett.Common.Indexers
|
||||||
var releases = new List<ReleaseInfo>();
|
var releases = new List<ReleaseInfo>();
|
||||||
var searchParam = new Dictionary<string, string>();
|
var searchParam = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
if (query.IsTvdbSearch)
|
||||||
|
searchParam["tvdb"] = string.Format("{0}", query.TvdbID);
|
||||||
searchParam["search"] = searchString.Replace(" ", "%");
|
searchParam["search"] = searchString.Replace(" ", "%");
|
||||||
|
|
||||||
var parameters = new JArray
|
var parameters = new JArray
|
||||||
|
|
Loading…
Reference in New Issue