1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

Add anime cap to ipt and remove New tag from PTM

This commit is contained in:
KZ 2015-07-26 19:01:08 +01:00
parent 4ba1ea7000
commit 7dc8cd3c8a
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@ namespace Jackett.Indexers
manager: i,
logger: l)
{
TorznabCaps.Categories.Add(new TorznabCategory { ID = "5070", Name = "TV/Anime" });
SearchUrl = SiteLink + "t?26=&55=&78=&23=&24=&25=&66=&82=&65=&83=&79=&22=&5=&4=&60=&q=";
webclient = wc;
}

View file

@ -161,6 +161,11 @@ namespace Jackett.Indexers
var qLink = row.ChildElements.ElementAt(1).Cq().Find("a").First();
release.Title = qLink.Text().Trim();
if (qLink.Find("span").Count() == 1 && release.Title.StartsWith("NEW! |"))
{
release.Title = release.Title.Substring(6).Trim();
}
release.Comments = new Uri(SiteLink + qLink.Attr("href"));
release.Guid = release.Comments;