mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: ImmortalSeed date format change
This commit is contained in:
@@ -262,19 +262,20 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
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);
|
||||
|
Reference in New Issue
Block a user