New: Drone now uses the Download Client API to determine if a download is ready for import. (User configuration is required to replace the drone factory with this feature)

This commit is contained in:
Taloth Saldono
2014-04-19 17:09:22 +02:00
parent dcb586b937
commit 2035fe8578
196 changed files with 3961 additions and 2223 deletions
+3 -16
View File
@@ -7,6 +7,9 @@ namespace NzbDrone.Core.Indexers.Newznab
{
public class Newznab : IndexerBase<NewznabSettings>
{
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public override Int32 SupportedPageSize { get { return 100; } }
public override IParseFeed Parser
{
get
@@ -72,14 +75,6 @@ namespace NzbDrone.Core.Indexers.Newznab
return settings;
}
public override bool SupportsPaging
{
get
{
return true;
}
}
public override IEnumerable<string> RecentFeed
{
get
@@ -140,14 +135,6 @@ namespace NzbDrone.Core.Indexers.Newznab
return RecentFeed.Select(url => String.Format("{0}&limit=100&q={1}&season={2}&offset={3}", url, NewsnabifyTitle(seriesTitle), seasonNumber, offset));
}
public override DownloadProtocol Protocol
{
get
{
return DownloadProtocol.Usenet;
}
}
private static string NewsnabifyTitle(string title)
{
return title.Replace("+", "%20");