Prevent nzb.life caps check rate limiting

Closes #990
This commit is contained in:
TheOtherP 2025-06-02 16:55:58 +02:00
parent 1b8a833f5f
commit f7bd651bc0
5 changed files with 15 additions and 6 deletions

View File

@ -205,7 +205,10 @@ public class IndexerChecker {
try {
logger.info("Will check capabilities of indexer {} using {} concurrent connections and a delay of {}ms", indexerConfig.getName(), capsCheckLimit.maxConnections, capsCheckLimit.delayInMiliseconds);
List<Future<SingleCheckCapsResponse>> futures = executor.invokeAll(callables);
Future<IndexerConfig.ForbiddenWordPrefix> forbiddenWordPrefixFuture = executor.submit(() -> determineForbiddenWordPrefix(indexerConfig));
Future<IndexerConfig.ForbiddenWordPrefix> forbiddenWordPrefixFuture = executor.submit(() -> {
Thread.sleep(capsCheckLimit.delayInMiliseconds); //Give indexer some time to breathe
return determineForbiddenWordPrefix(indexerConfig);
});
for (Future<SingleCheckCapsResponse> future : futures) {
try {
SingleCheckCapsResponse response = future.get(timeout, TimeUnit.SECONDS);

View File

@ -1,4 +1,10 @@
#@formatter:off
- version: "v7.14.1"
date: "2025-06-02"
changes:
- type: "fixed"
text: "nzb.su / nzb.life caps check should now actually work. I previously didn't have VIP access and couldn't test it. See #990"
final: true
- version: "v7.14.0"
date: "2025-05-30"
changes:

View File

@ -4425,8 +4425,8 @@ angular.module('nzbhydraApp').controller('IndexerConfigSelectionBoxInstanceContr
host: "https://nzb.cat"
},
{
name: "nzb.su",
host: "https://api.nzb.su"
name: "nzb.life",
host: "https://api.nzb.life"
},
{
name: "NZBGeek",

File diff suppressed because one or more lines are too long

View File

@ -842,8 +842,8 @@ angular.module('nzbhydraApp').controller('IndexerConfigSelectionBoxInstanceContr
host: "https://nzb.cat"
},
{
name: "nzb.su",
host: "https://api.nzb.su"
name: "nzb.life",
host: "https://api.nzb.life"
},
{
name: "NZBGeek",