core: prefer object initializers (#7342)

This commit is contained in:
Cory
2020-03-26 17:15:28 -05:00
committed by GitHub
parent 12e55828f0
commit b5a6aab894
62 changed files with 1146 additions and 1064 deletions

View File

@@ -363,13 +363,14 @@ namespace Jackett.Common.Indexers
releaseTitle = string.Format("{0}{1} {2} {3}", releasegroup, title, releaseInfo, infoString);
}
var guid = new Uri(CommentsLinkUri + "&nh=" + StringUtil.Hash(title));
var release = new ReleaseInfo
{
MinimumRatio = 1,
MinimumSeedTime = MinimumSeedTime,
Title = releaseTitle,
Comments = CommentsLinkUri,
Guid = new Uri(CommentsLinkUri + "&nh=" + StringUtil.Hash(title)), // Sonarr should dedupe on this url - allow a url per name.
Guid = guid, // Sonarr should dedupe on this url - allow a url per name.
Link = LinkUri,
BannerUrl = ImageUrl,
PublishDate = PublushDate,