From 20de034a15c5fcd30a0e0653e0869e4c68c67696 Mon Sep 17 00:00:00 2001 From: TheOtherP Date: Wed, 13 Nov 2024 19:53:41 +0100 Subject: [PATCH] Improve a bit of logging and code --- core/src/main/java/org/nzbhydra/indexers/Newznab.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/nzbhydra/indexers/Newznab.java b/core/src/main/java/org/nzbhydra/indexers/Newznab.java index faa0104c1..1cc2ba937 100644 --- a/core/src/main/java/org/nzbhydra/indexers/Newznab.java +++ b/core/src/main/java/org/nzbhydra/indexers/Newznab.java @@ -149,8 +149,8 @@ protected UriComponentsBuilder buildSearchUrl(SearchRequest searchRequest, Integ String query = ""; + //Only provide search IDs when no fallback to query generation was requested if (searchRequest.getInternalData().getFallbackStateByIndexer(getName()) != InternalData.FallbackState.REQUESTED) { - //Don't provide search IDs when a fallback to query generation was requested componentsBuilder = extendQueryUrlWithSearchIds(searchRequest, componentsBuilder); } query = generateQueryIfApplicable(searchRequest, query); @@ -382,7 +382,7 @@ protected UriComponentsBuilder extendQueryUrlWithSearchIds(SearchRequest searchR if (!config.getSupportedSearchIds().contains(entry.getKey())) { continue; } - debug("Using media type ID {}={}", entry.getKey(), entry.getValue()); + debug("Using media ID {}={}", entry.getKey(), entry.getValue()); componentsBuilder.queryParam(idTypeToParamValueMap.get(entry.getKey()), entry.getValue().replace("tt", "")); }