mirror of
https://github.com/theotherp/nzbhydra2.git
synced 2026-02-06 11:17:18 +00:00
Replace slash and quotation marks in download name sent to sabNZBd
Closes #1015
This commit is contained in:
parent
b60476f521
commit
d6fcc55ec1
@ -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)) {
|
||||
|
||||
@ -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
4
core/test-results/.last-run.json
Normal file
4
core/test-results/.last-run.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"status": "failed",
|
||||
"failedTests": []
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user