Cardigann: Add query url separator option (#8128)

This commit is contained in:
Cory 2020-04-12 02:55:56 -05:00 committed by GitHub
parent b343276603
commit 0fc36236cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1709,9 +1709,9 @@ namespace Jackett.Common.Indexers
if (queryCollection.Count > 0)
{
if (!requestLinkStr.Contains("?"))
requestLinkStr += "?" + queryCollection.GetQueryString(Encoding).Substring(1);
requestLinkStr += "?" + queryCollection.GetQueryString(Encoding, separator: request.Queryseparator).Substring(1);
else
requestLinkStr += queryCollection.GetQueryString(Encoding);
requestLinkStr += queryCollection.GetQueryString(Encoding, separator: request.Queryseparator);
}
var response = await RequestBytesWithCookiesAndRetry(requestLinkStr, null, method, referer, pairs);

View File

@ -163,6 +163,7 @@ namespace Jackett.Common.Models
public string Path { get; set; }
public string Method { get; set; }
public Dictionary<string, string> Inputs { get; set; }
public string Queryseparator { get; set; } = "&";
}
public class downloadBlock