mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Implemented torznab capabilities feature
This commit is contained in:
27
src/Jackett/Utils/TorznabCapsUtil.cs
Normal file
27
src/Jackett/Utils/TorznabCapsUtil.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Jackett.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Jackett.Utils
|
||||
{
|
||||
public static class TorznabCapsUtil
|
||||
{
|
||||
public static TorznabCapabilities CreateDefaultTorznabTVCaps()
|
||||
{
|
||||
var caps = new TorznabCapabilities();
|
||||
caps.SearchAvailable = true;
|
||||
caps.TVSearchAvailable = true;
|
||||
caps.SupportsTVRageSearch = false;
|
||||
caps.Categories.AddRange(new[] {
|
||||
new TorznabCategory { ID = "5000", Name = "TV" },
|
||||
new TorznabCategory { ID = "5030", Name = "TV/SD" },
|
||||
new TorznabCategory { ID = "5040", Name = "TV/HD" }
|
||||
});
|
||||
return caps;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user