mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
skip queue check and adding new items if download client isn't configured correctly.
This commit is contained in:
@@ -24,7 +24,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
||||
public IRestRequest AddToQueueRequest(RemoteEpisode remoteEpisode)
|
||||
{
|
||||
string cat = _configService.SabTvCategory;
|
||||
int priority = (int)_configService.SabRecentTvPriority;
|
||||
int priority = (int)_configService.SabRecentTvPriority;
|
||||
|
||||
string name = remoteEpisode.Report.NzbUrl.Replace("&", "%26");
|
||||
string nzbName = HttpUtility.UrlEncode(remoteEpisode.Report.Title);
|
||||
@@ -97,6 +97,15 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool IsConfigured
|
||||
{
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrWhiteSpace(_configService.SabHost)
|
||||
&& _configService.SabPort != 0;
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<QueueItem> GetQueue()
|
||||
{
|
||||
string action = String.Format("mode=queue&output=json&start={0}&limit={1}", 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user