Skip to content

Commit

Permalink
Improve a bit of logging and code
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 13, 2024
1 parent 6d51600 commit 20de034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/nzbhydra/indexers/Newznab.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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", ""));
}

Expand Down

0 comments on commit 20de034

Please sign in to comment.