Skip to content

Commit

Permalink
Fix for Issue #965 (#966)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Kastner <daniel@daniel-kastner.ch>
  • Loading branch information
danielkastner and Daniel Kastner authored Aug 17, 2024
1 parent f180de1 commit cb64cbd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/main/java/org/nzbhydra/indexers/NzbKing.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down Expand Up @@ -133,7 +130,7 @@ private SearchResultItem parseRow(Element row) {
filename = matcher.group(1) + "." + matcher.group(2);
title = cleanUpTitle(title);
item.setTitle(title);
item.setAttributes(Map.of("filename", filename));
item.setAttributes(new HashMap<>(Map.of("filename", filename)));

item.setIndexerGuid(getElementOrNone(row, "input[type=checkbox]").attr("value"));
item.setLink("https://www.nzbking.com/nzb:" + item.getIndexerGuid());
Expand Down

0 comments on commit cb64cbd

Please sign in to comment.