mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Moved AnimeBytes helper class into its main class file
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Jackett
|
|
||||||
{
|
|
||||||
public class ConfigurationDataBasicLoginAnimeBytes : ConfigurationDataBasicLogin
|
|
||||||
{
|
|
||||||
public BoolItem IncludeRaw { get; private set; }
|
|
||||||
public DisplayItem RageIdWarning { get; private set; }
|
|
||||||
public DisplayItem DateWarning { get; private set; }
|
|
||||||
|
|
||||||
public ConfigurationDataBasicLoginAnimeBytes(): base()
|
|
||||||
{
|
|
||||||
IncludeRaw = new BoolItem() { Name = "IncludeRaw", Value = false };
|
|
||||||
RageIdWarning = new DisplayItem("Ensure rageid lookup is disabled in Sonarr for this tracker.") { Name = "RageWarning" };
|
|
||||||
DateWarning = new DisplayItem("This tracker does not supply upload dates so they are based off year of release.") { Name = "DateWarning" };
|
|
||||||
}
|
|
||||||
|
|
||||||
public override Item[] GetItems()
|
|
||||||
{
|
|
||||||
return new Item[] { Username, Password, IncludeRaw, RageIdWarning, DateWarning };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -16,6 +16,26 @@ namespace Jackett.Indexers
|
|||||||
{
|
{
|
||||||
public class AnimeBytes : IndexerInterface
|
public class AnimeBytes : IndexerInterface
|
||||||
{
|
{
|
||||||
|
class ConfigurationDataBasicLoginAnimeBytes : ConfigurationDataBasicLogin
|
||||||
|
{
|
||||||
|
public BoolItem IncludeRaw { get; private set; }
|
||||||
|
public DisplayItem RageIdWarning { get; private set; }
|
||||||
|
public DisplayItem DateWarning { get; private set; }
|
||||||
|
|
||||||
|
public ConfigurationDataBasicLoginAnimeBytes()
|
||||||
|
: base()
|
||||||
|
{
|
||||||
|
IncludeRaw = new BoolItem() { Name = "IncludeRaw", Value = false };
|
||||||
|
RageIdWarning = new DisplayItem("Ensure rageid lookup is disabled in Sonarr for this tracker.") { Name = "RageWarning" };
|
||||||
|
DateWarning = new DisplayItem("This tracker does not supply upload dates so they are based off year of release.") { Name = "DateWarning" };
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Item[] GetItems()
|
||||||
|
{
|
||||||
|
return new Item[] { Username, Password, IncludeRaw, RageIdWarning, DateWarning };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static List<CachedResult> cache = new List<CachedResult>();
|
private static List<CachedResult> cache = new List<CachedResult>();
|
||||||
private static readonly TimeSpan cacheTime = new TimeSpan(0, 9, 0);
|
private static readonly TimeSpan cacheTime = new TimeSpan(0, 9, 0);
|
||||||
|
|
||||||
|
@@ -86,7 +86,6 @@
|
|||||||
<Compile Include="CachedResult.cs" />
|
<Compile Include="CachedResult.cs" />
|
||||||
<Compile Include="ChannelInfo.cs" />
|
<Compile Include="ChannelInfo.cs" />
|
||||||
<Compile Include="ConfigurationData.cs" />
|
<Compile Include="ConfigurationData.cs" />
|
||||||
<Compile Include="ConfigurationDataBasicLoginAnimeBytes.cs" />
|
|
||||||
<Compile Include="ConfigurationDataBasicLogin.cs" />
|
<Compile Include="ConfigurationDataBasicLogin.cs" />
|
||||||
<Compile Include="ConfigurationDataUrl.cs" />
|
<Compile Include="ConfigurationDataUrl.cs" />
|
||||||
<Compile Include="CookieContainerExtensions.cs" />
|
<Compile Include="CookieContainerExtensions.cs" />
|
||||||
|
Reference in New Issue
Block a user