Replace slash and quotation marks in download name sent to sabNZBd

Closes #1015
This commit is contained in:
TheOtherP 2025-09-18 12:57:34 +02:00
parent b60476f521
commit d6fcc55ec1
4 changed files with 8 additions and 1 deletions

View File

@ -103,6 +103,7 @@ public class Sabnzbd extends Downloader {
public String addLink(String url, String title, DownloadType downloadType, String category) throws DownloaderException {
logger.debug("Sending link for NZB {} to sabnzbd", title);
title = suffixNzbToTitle(title);
title = title.replace("\"", "_").replace("/", "_");
UriComponentsBuilder urlBuilder = getBaseUrl();
urlBuilder.queryParam("mode", "addurl").queryParam("name", url).queryParam("nzbname", title).queryParam("priority", getPriority());
if (!Strings.isNullOrEmpty(category)) {

View File

@ -3,6 +3,8 @@
changes:
- type: "added"
text: "Configure external tools once. Sync your indexers to them manually and automatically whenever you change your indexer config. See #1014"
- type: "fixed"
text: "Replace slash and quotation marks in download name sent to sabNZBd. See #1015"
- version: "v7.18.0"
changes:
- type: "added"

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
{
"status": "failed",
"failedTests": []
}