|
|
@ -72,6 +72,19 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private bool SupportsTvMazeSearch
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var capabilities = _capabilitiesProvider.GetCapabilities(Settings);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return capabilities.SupportedTvSearchParameters != null &&
|
|
|
|
|
|
|
|
capabilities.SupportedTvSearchParameters.Contains("tvmazeid") &&
|
|
|
|
|
|
|
|
capabilities.SupportedTvSearchParameters.Contains("season") &&
|
|
|
|
|
|
|
|
capabilities.SupportedTvSearchParameters.Contains("ep");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private bool SupportsAggregatedIdSearch
|
|
|
|
private bool SupportsAggregatedIdSearch
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get
|
|
|
|
get
|
|
|
@ -184,6 +197,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
ids += "&rid=" + searchCriteria.Series.TvRageId;
|
|
|
|
ids += "&rid=" + searchCriteria.Series.TvRageId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (searchCriteria.Series.TvMazeId > 0 && SupportsTvMazeSearch)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ids += "&tvmazeid=" + searchCriteria.Series.TvMazeId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
chain.Add(GetPagedRequests(maxPages, categories, "tvsearch", ids + parameters));
|
|
|
|
chain.Add(GetPagedRequests(maxPages, categories, "tvsearch", ids + parameters));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -198,6 +216,12 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
chain.Add(GetPagedRequests(maxPages, categories, "tvsearch",
|
|
|
|
chain.Add(GetPagedRequests(maxPages, categories, "tvsearch",
|
|
|
|
string.Format("&rid={0}{1}", searchCriteria.Series.TvRageId, parameters)));
|
|
|
|
string.Format("&rid={0}{1}", searchCriteria.Series.TvRageId, parameters)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else if (searchCriteria.Series.TvMazeId > 0 && SupportsTvMazeSearch)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
chain.Add(GetPagedRequests(maxPages, categories, "tvsearch",
|
|
|
|
|
|
|
|
string.Format("&tvmazeid={0}{1}", searchCriteria.Series.TvMazeId, parameters)));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (SupportsTvSearch)
|
|
|
|
if (SupportsTvSearch)
|
|
|
|