mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 23:22:46 +00:00
Digitalhive (#1272)
* Attempt to fix DigitalHive Date Parsing * Add reference
This commit is contained in:
parent
daf2ea202c
commit
f9a2da83b2
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ using System.Threading.Tasks;
|
|||
using Jackett.Models.IndexerConfig;
|
||||
using System.Collections.Specialized;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.IO;
|
||||
|
||||
namespace Jackett.Indexers
|
||||
{
|
||||
|
@ -204,7 +205,7 @@ namespace Jackett.Indexers
|
|||
release.Guid = new Uri(SiteLink + qRow.Find("td:nth-child(2) > a").First().Attr("href"));
|
||||
release.Comments = release.Guid;
|
||||
release.Link = new Uri(SiteLink + qRow.Find("td:nth-child(3) > a").First().Attr("href"));
|
||||
var pubDate = qRow.Find("td:nth-child(2) > span").First().Text().Trim().Replace("Added: ", "");
|
||||
var pubDate = new StringReader(qRow.Find("td:nth-child(2) > span").First().Text()).ReadLine().Trim().Replace("Added: ", "");
|
||||
release.PublishDate = DateTime.Parse(pubDate).ToLocalTime();
|
||||
release.Category = MapTrackerCatToNewznab(qRow.Find("td:nth-child(1) > a").First().Attr("href").Split('=')[1]);
|
||||
release.Size = ReleaseInfo.GetBytes(qRow.Find("td:nth-child(7)").First().Text());
|
||||
|
|
Loading…
Reference in a new issue