mirror of https://github.com/Jackett/Jackett
Demonoid: add more detailed audio category mapping
This commit is contained in:
parent
db049b2478
commit
a399e8d0a5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue