mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Cardigann: Add query url separator option (#8128)
This commit is contained in:
@@ -1709,9 +1709,9 @@ namespace Jackett.Common.Indexers
|
|||||||
if (queryCollection.Count > 0)
|
if (queryCollection.Count > 0)
|
||||||
{
|
{
|
||||||
if (!requestLinkStr.Contains("?"))
|
if (!requestLinkStr.Contains("?"))
|
||||||
requestLinkStr += "?" + queryCollection.GetQueryString(Encoding).Substring(1);
|
requestLinkStr += "?" + queryCollection.GetQueryString(Encoding, separator: request.Queryseparator).Substring(1);
|
||||||
else
|
else
|
||||||
requestLinkStr += queryCollection.GetQueryString(Encoding);
|
requestLinkStr += queryCollection.GetQueryString(Encoding, separator: request.Queryseparator);
|
||||||
}
|
}
|
||||||
|
|
||||||
var response = await RequestBytesWithCookiesAndRetry(requestLinkStr, null, method, referer, pairs);
|
var response = await RequestBytesWithCookiesAndRetry(requestLinkStr, null, method, referer, pairs);
|
||||||
|
@@ -163,6 +163,7 @@ namespace Jackett.Common.Models
|
|||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
public string Method { get; set; }
|
public string Method { get; set; }
|
||||||
public Dictionary<string, string> Inputs { get; set; }
|
public Dictionary<string, string> Inputs { get; set; }
|
||||||
|
public string Queryseparator { get; set; } = "&";
|
||||||
}
|
}
|
||||||
|
|
||||||
public class downloadBlock
|
public class downloadBlock
|
||||||
|
Reference in New Issue
Block a user