mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: prefer object initializers (#7342)
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Jackett.Common.Indexers
|
||||
private string LoginUrl => SiteLink + "login.php";
|
||||
private string SearchUrl => SiteLink + "ajax.php?action=browse&searchstr=";
|
||||
private string DownloadUrl => SiteLink + "torrents.php?action=download&id=";
|
||||
private string GuidUrl => SiteLink + "torrents.php?torrentid=";
|
||||
private string CommentsUrl => SiteLink + "torrents.php?torrentid=";
|
||||
|
||||
private ConfigurationDataBasicLogin ConfigData => (ConfigurationDataBasicLogin)configData;
|
||||
|
||||
@@ -267,13 +267,13 @@ namespace Jackett.Common.Indexers
|
||||
var grabs = int.Parse(torrentData[1].TextContent, NumberStyles.AllowThousands, CultureInfo.InvariantCulture);
|
||||
var seeders = int.Parse(torrentData[2].TextContent, NumberStyles.AllowThousands, CultureInfo.InvariantCulture);
|
||||
var leechers = int.Parse(torrentData[3].TextContent, NumberStyles.AllowThousands, CultureInfo.InvariantCulture);
|
||||
var guid = new Uri(GuidUrl + torrentId);
|
||||
|
||||
var comments = new Uri(CommentsUrl + torrentId);
|
||||
var link = new Uri(DownloadUrl + torrentId);
|
||||
return new ReleaseInfo
|
||||
{
|
||||
Title = title,
|
||||
Category = new List<int> { category }, // Who seasons movies right
|
||||
Link = new Uri(DownloadUrl + torrentId),
|
||||
Link = link,
|
||||
PublishDate = publishDate,
|
||||
BannerUrl = banner,
|
||||
Description = description,
|
||||
@@ -282,8 +282,8 @@ namespace Jackett.Common.Indexers
|
||||
Files = files,
|
||||
Size = size,
|
||||
Grabs = grabs,
|
||||
Guid = guid,
|
||||
Comments = guid,
|
||||
Guid = comments,
|
||||
Comments = comments,
|
||||
DownloadVolumeFactor = 0, // ratioless tracker
|
||||
UploadVolumeFactor = 1
|
||||
};
|
||||
|
Reference in New Issue
Block a user