Fixed: ThePirateBay failure on empty response

This commit is contained in:
Qstick
2021-05-16 22:50:05 -04:00
parent d3839a9982
commit 4cc52c415c
@@ -229,7 +229,7 @@ namespace NzbDrone.Core.Indexers.Definitions
// The API returns a single item to represent a state of no results. Avoid returning this result.
if (queryResponseItems.Count == 1 && queryResponseItems.First().Id == 0)
{
return (IList<ReleaseInfo>)Enumerable.Empty<ReleaseInfo>();
return torrentInfos;
}
foreach (var item in queryResponseItems)