mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-24 17:32:37 +01:00
Fixed: ImmortalSeed date format change
This commit is contained in:
parent
62977d0863
commit
c122f3f3ab
1 changed files with 8 additions and 7 deletions
|
|
@ -262,19 +262,20 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
var qTitle = row.QuerySelector(".tooltip-content > div:nth-of-type(1)") ?? qDetails;
|
||||
release.Title = qTitle.TextContent;
|
||||
|
||||
//var qDesciption = row.QuerySelectorAll(".tooltip-content > div");
|
||||
//if (qDesciption.Any())
|
||||
//{
|
||||
// release.Description = qDesciption[1].TextContent.Trim();
|
||||
//}
|
||||
var qDesciption = row.QuerySelectorAll(".tooltip-content > div");
|
||||
if (qDesciption.Any())
|
||||
{
|
||||
release.Description = qDesciption[1].TextContent.Trim();
|
||||
}
|
||||
|
||||
var qLink = row.QuerySelector("a[href*=\"download.php\"]");
|
||||
release.DownloadUrl = qLink.GetAttribute("href");
|
||||
release.Guid = release.DownloadUrl;
|
||||
release.InfoUrl = qDetails.GetAttribute("href");
|
||||
|
||||
// 07-22-2015 11:08 AM
|
||||
// 2021-03-17 03:39 AM
|
||||
var dateString = row.QuerySelectorAll("td:nth-of-type(2) div").Last().LastChild.TextContent.Trim();
|
||||
release.PublishDate = DateTime.ParseExact(dateString, "MM-dd-yyyy hh:mm tt", CultureInfo.InvariantCulture);
|
||||
release.PublishDate = DateTime.ParseExact(dateString, "yyyy-MM-dd hh:mm tt", CultureInfo.InvariantCulture);
|
||||
|
||||
var sizeStr = row.QuerySelector("td:nth-of-type(5)").TextContent.Trim();
|
||||
release.Size = ReleaseInfo.GetBytes(sizeStr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue