New: Detect audio vs text from newznab categories

This commit is contained in:
ta264
2021-05-26 22:09:31 +01:00
parent 065f03a01a
commit 3abda061ba
9 changed files with 72 additions and 10 deletions
+6
View File
@@ -159,6 +159,7 @@ namespace NzbDrone.Core.Indexers
releaseInfo.BasicAuthString = GetBasicAuth();
releaseInfo.InfoUrl = GetInfoUrl(item);
releaseInfo.CommentUrl = GetCommentUrl(item);
releaseInfo.Categories = GetCategories(item);
try
{
@@ -230,6 +231,11 @@ namespace NzbDrone.Core.Indexers
return ParseUrl((string)item.Element("comments"));
}
protected virtual List<int> GetCategories(XElement item)
{
return new List<int>();
}
protected virtual long GetSize(XElement item)
{
if (UseEnclosureLength)