mirror of https://github.com/Jackett/Jackett
Cardigann: Add query url separator option (#8128)
This commit is contained in:
parent
b343276603
commit
0fc36236cd
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue