From a399e8d0a5ecc3859a7d8b906031d7502b6862ba Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 3 Jan 2017 14:01:11 +0100 Subject: [PATCH] Demonoid: add more detailed audio category mapping --- src/Jackett/Indexers/Demonoid.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Jackett/Indexers/Demonoid.cs b/src/Jackett/Indexers/Demonoid.cs index 78ac827c8..25954ee60 100644 --- a/src/Jackett/Indexers/Demonoid.cs +++ b/src/Jackett/Indexers/Demonoid.cs @@ -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;