mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Demonoid: add more detailed audio category mapping
This commit is contained in:
@@ -130,6 +130,16 @@ namespace Jackett.Indexers
|
|||||||
release.Title = qLink.Text().Trim();
|
release.Title = qLink.Text().Trim();
|
||||||
release.Description = rowB.ChildElements.ElementAt(0).Cq().Text();
|
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.Comments = new Uri(SiteLink + qLink.Attr("href"));
|
||||||
release.Guid = release.Comments;
|
release.Guid = release.Comments;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user