Skip to content

Commit

Permalink
增加 trackers 自动更新
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Oct 16, 2024
1 parent 0fd8d98 commit 4cfee27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ani/rss/download/qBittorrent.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void updateTrackers(Set<String> trackers) {
return gson.fromJson(body, JsonObject.class);
});

preferences.addProperty("add_trackers", CollUtil.join(trackers, "\\n"));
preferences.addProperty("add_trackers", CollUtil.join(trackers, "\n"));

HttpReq.post(host + "/api/v2/app/setPreferences", false)
.form("json", gson.toJson(preferences))
Expand Down

0 comments on commit 4cfee27

Please sign in to comment.