Fixed: Return Correct Nab feed depending on Indexer Protocol

This commit is contained in:
Qstick
2020-12-29 22:28:12 -05:00
parent a7dce5251f
commit c6ec632dd2
2 changed files with 23 additions and 14 deletions

View File

@@ -62,11 +62,12 @@ namespace Prowlarr.Api.V1.Indexers
Response response = indexerInstance.GetCapabilities().ToXml();
response.ContentType = "application/rss+xml";
return response;
case "seach":
case "tvsearch":
case "music":
case "book":
case "movie":
Response movieResponse = _nzbSearchService.Search(request, new List<int> { indexer.Id }, false).ToXml();
Response movieResponse = _nzbSearchService.Search(request, new List<int> { indexer.Id }, false).ToXml(indexerInstance.Protocol);
movieResponse.ContentType = "application/rss+xml";
return movieResponse;
default: