Demonoid: add more detailed audio category mapping

This commit is contained in:
kaso17 2017-01-03 14:01:11 +01:00
parent db049b2478
commit a399e8d0a5
1 changed files with 10 additions and 0 deletions

View File

@ -130,6 +130,16 @@ namespace Jackett.Indexers
release.Title = qLink.Text().Trim();
release.Description = rowB.ChildElements.ElementAt(0).Cq().Text();
if (release.Category == TorznabCatType.Audio.ID)
{
if (release.Description.Contains("Lossless"))
release.Category = TorznabCatType.AudioLossless.ID;
else if (release.Description.Contains("MP3"))
release.Category = TorznabCatType.AudioMP3.ID;
else
release.Category = TorznabCatType.AudioOther.ID;
}
release.Comments = new Uri(SiteLink + qLink.Attr("href"));
release.Guid = release.Comments;