New: Support Indexer Grab Redirects

This commit is contained in:
Qstick
2021-02-24 23:28:00 -05:00
parent a676eaeda5
commit df8ef83e40
21 changed files with 109 additions and 15 deletions
@@ -78,6 +78,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
Privacy = definition.Type == "private" ? IndexerPrivacy.Private : IndexerPrivacy.Public,
SupportsRss = SupportsRss,
SupportsSearch = SupportsSearch,
SupportsRedirect = SupportsRedirect,
Capabilities = new IndexerCapabilities(),
ExtraFields = settings
};
@@ -223,7 +223,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
if (setting.Type != "password")
{
_logger.Debug($"{name} got value {value.ToJson()}");
_logger.Trace($"{name} got value {value.ToJson()}");
}
if (setting.Type == "text" || setting.Type == "password")
@@ -236,7 +236,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
}
else if (setting.Type == "select")
{
_logger.Debug($"Setting options: {setting.Options.ToJson()}");
_logger.Trace($"Setting options: {setting.Options.ToJson()}");
var sorted = setting.Options.OrderBy(x => x.Key).ToList();
var selected = sorted[(int)(long)value];
@@ -18,6 +18,7 @@ namespace NzbDrone.Core.Indexers.Newznab
public override string Name => "Newznab";
public override string BaseUrl => GetBaseUrlFromSettings();
public override bool FollowRedirect => true;
public override bool SupportsRedirect => true;
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
public override IndexerPrivacy Privacy => IndexerPrivacy.Private;
@@ -113,6 +114,7 @@ namespace NzbDrone.Core.Indexers.Newznab
Privacy = IndexerPrivacy.Private,
SupportsRss = SupportsRss,
SupportsSearch = SupportsSearch,
SupportsRedirect = SupportsRedirect,
Capabilities = Capabilities
};
}
@@ -29,7 +29,8 @@ namespace NzbDrone.Core.Indexers.TorrentPotato
Settings = settings,
Protocol = DownloadProtocol.Torrent,
SupportsRss = SupportsRss,
SupportsSearch = SupportsSearch
SupportsSearch = SupportsSearch,
SupportsRedirect = SupportsRedirect
};
}
@@ -64,6 +64,7 @@ namespace NzbDrone.Core.Indexers.Torznab
Protocol = DownloadProtocol.Usenet,
SupportsRss = SupportsRss,
SupportsSearch = SupportsSearch,
SupportsRedirect = SupportsRedirect,
Capabilities = new IndexerCapabilities()
};
}