Demonoid: handle new ad type

This commit is contained in:
kaso17 2018-01-23 20:44:44 +01:00
parent 4fef4f872e
commit bcd9836088
1 changed files with 5 additions and 2 deletions

View File

@ -157,9 +157,12 @@ namespace Jackett.Indexers
{
// ex: "Monday, Jun 01, 2015", "Monday, Aug 03, 2015"
var dateStr = rowA.Cq().Text().Trim().Replace("Added on ", "");
if (string.IsNullOrWhiteSpace(dateStr) || dateStr == "Sponsored links" || dateStr.StartsWith("!function")) // ignore ads
if (string.IsNullOrWhiteSpace(dateStr) ||
dateStr == "Sponsored links" ||
dateStr.StartsWith("!function") ||
dateStr.StartsWith("atOptions"))
{
continue;
continue; // ignore ads
}
if (dateStr.ToLowerInvariant().Contains("today"))
lastDateTime = DateTime.Now;