mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 13:52:03 +00:00
chore: apply dotnet format (#13880)
This commit is contained in:
parent
3771801c41
commit
33f59521aa
6 changed files with 23 additions and 21 deletions
|
@ -267,8 +267,10 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
if (!string.IsNullOrEmpty(configData.UserAgent.Value))
|
||||
{
|
||||
headers = new Dictionary<string, string>();
|
||||
headers.Add("User-Agent", configData.UserAgent.Value);
|
||||
headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "User-Agent", configData.UserAgent.Value }
|
||||
};
|
||||
}
|
||||
|
||||
foreach (var cat in MapTorznabCapsToTrackers(query))
|
||||
|
|
|
@ -248,8 +248,10 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
if (!string.IsNullOrEmpty(configData.UserAgent.Value))
|
||||
{
|
||||
headers = new Dictionary<string, string>();
|
||||
headers.Add("User-Agent", configData.UserAgent.Value);
|
||||
headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "User-Agent", configData.UserAgent.Value }
|
||||
};
|
||||
}
|
||||
|
||||
if (query.IsImdbQuery)
|
||||
|
|
|
@ -225,16 +225,14 @@ namespace Jackett.Common.Indexers
|
|||
var release = new ReleaseInfo
|
||||
{
|
||||
MinimumRatio = 1,
|
||||
MinimumSeedTime = 0
|
||||
};
|
||||
|
||||
MinimumSeedTime = 0,
|
||||
// Get Category
|
||||
release.Category = MapTrackerCatToNewznab(torrent[7].ToString());
|
||||
|
||||
Category = MapTrackerCatToNewznab(torrent[7].ToString()),
|
||||
// Title, description and details link
|
||||
release.Title = torrent[3].ToString();
|
||||
release.Description = torrent[6].ToString();
|
||||
release.Details = new Uri($"{SiteLink}index.html#torrent/{torrent[0]}");
|
||||
Title = torrent[3].ToString(),
|
||||
Description = torrent[6].ToString(),
|
||||
Details = new Uri($"{SiteLink}index.html#torrent/{torrent[0]}")
|
||||
};
|
||||
release.Guid = release.Details;
|
||||
|
||||
// Date of torrent creation
|
||||
|
|
|
@ -146,10 +146,12 @@ namespace Jackett.Common.Indexers
|
|||
var releases = new List<ReleaseInfo>();
|
||||
|
||||
var searchString = query.GetQueryString();
|
||||
var queryCollection = new NameValueCollection { { "apikey", ConfigData.Key.Value } };
|
||||
|
||||
queryCollection.Add("limit", "50"); // Default 30
|
||||
queryCollection.Add("ponly", ProductsOnly ? "true" : "false");
|
||||
var queryCollection = new NameValueCollection
|
||||
{
|
||||
{ "apikey", ConfigData.Key.Value },
|
||||
{ "limit", "50" }, // Default 30
|
||||
{ "ponly", ProductsOnly ? "true" : "false" }
|
||||
};
|
||||
foreach (var releaseType in ReleaseType)
|
||||
{
|
||||
queryCollection.Add("release_type", releaseType);
|
||||
|
|
|
@ -204,9 +204,7 @@ namespace Jackett.Common.Utils.Clients
|
|||
isBinary = true;
|
||||
}
|
||||
}
|
||||
logger.Debug($@"WebClient({ClientType}): Returning {result.Status} => {
|
||||
(result.IsRedirect ? result.RedirectingTo + " " : "")
|
||||
}{bodySize} bytes{body}");
|
||||
logger.Debug($@"WebClient({ClientType}): Returning {result.Status} => {(result.IsRedirect ? result.RedirectingTo + " " : "")}{bodySize} bytes{body}");
|
||||
if (isBinary)
|
||||
{
|
||||
// show the first 20 bytes in a hex dump
|
||||
|
|
Loading…
Add table
Reference in a new issue