Private GIT

Skip to content
Snippets Groups Projects
Commit b42f2a09 authored by smarshallsay's avatar smarshallsay Committed by flightlevel
Browse files

Deal with carriage return in date string (#325)

parent 040deb2b
Branches
Tags v0.7.237
No related merge requests found
......@@ -151,6 +151,10 @@ namespace Jackett.Indexers
release.Link = new Uri(SiteLink + qRow.Find(".quickdownload > a").Attr("href").Substring(1));
var dateString = qRow.Find(".name")[0].InnerText.Trim().Replace(" ", string.Empty).Replace("Addedinon", string.Empty);
//Fix for issue 2016-04-30
dateString = dateString.Replace("\r", "").Replace("\n", "");
//"2015-04-25 23:38:12"
//"yyyy-MMM-dd hh:mm:ss"
release.PublishDate = DateTime.ParseExact(dateString, "yyyy-MM-ddHH:mm:ss", CultureInfo.InvariantCulture);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment