You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-11-06 09:19:38 +02:00
Removed IDownloadProvider
This commit is contained in:
@@ -12,4 +12,4 @@ namespace NzbDrone.Core.Providers
|
||||
bool StartSearch();
|
||||
bool StartSearch(int seriesId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace NzbDrone.Core.Providers
|
||||
{
|
||||
public interface IDownloadProvider
|
||||
{
|
||||
bool AddByUrl(string url, string title); //Should accept something other than string (NzbInfo?) returns success or failure
|
||||
bool IsInQueue(string title); //Should accept something other than string (Episode?) returns bool
|
||||
bool AddById(string id, string title);
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ using NzbDrone.Core.Providers.Core;
|
||||
|
||||
namespace NzbDrone.Core.Providers
|
||||
{
|
||||
public class SabProvider : IDownloadProvider
|
||||
public class SabProvider
|
||||
{
|
||||
private readonly IConfigProvider _config;
|
||||
private readonly HttpProvider _http;
|
||||
@@ -22,7 +22,7 @@ namespace NzbDrone.Core.Providers
|
||||
|
||||
#region IDownloadProvider Members
|
||||
|
||||
public bool AddByUrl(string url, string title)
|
||||
public virtual bool AddByUrl(string url, string title)
|
||||
{
|
||||
const string mode = "addurl";
|
||||
string cat = _config.GetValue("SabTvCategory", String.Empty, true);
|
||||
@@ -45,7 +45,7 @@ namespace NzbDrone.Core.Providers
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool IsInQueue(string title)
|
||||
public virtual bool IsInQueue(string title)
|
||||
{
|
||||
const string action = "mode=queue&output=xml";
|
||||
string request = GetSabRequest(action);
|
||||
@@ -71,7 +71,7 @@ namespace NzbDrone.Core.Providers
|
||||
return false; //Not in Queue
|
||||
}
|
||||
|
||||
public bool AddById(string id, string title)
|
||||
public virtual bool AddById(string id, string title)
|
||||
{
|
||||
//mode=addid&name=333333&pp=3&script=customscript.cmd&cat=Example&priority=-1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user