2014-12-07 07:55:17 +02:00
|
|
|
using NLog;
|
2014-09-07 14:44:24 +03:00
|
|
|
using NzbDrone.Common.Http;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Parser;
|
2014-04-22 01:50:43 +03:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Fanzub
|
|
|
|
{
|
2015-03-03 02:10:37 +02:00
|
|
|
public class Fanzub : HttpIndexerBase<FanzubSettings>
|
2014-04-22 01:50:43 +03:00
|
|
|
{
|
2015-04-25 18:19:23 +02:00
|
|
|
public override string Name
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return "Fanzub";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-07 14:44:24 +03:00
|
|
|
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
|
2014-05-19 22:14:41 +03:00
|
|
|
|
2014-09-07 14:44:24 +03:00
|
|
|
public Fanzub(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)
|
|
|
|
: base(httpClient, configService, parsingService, logger)
|
2014-04-22 01:50:43 +03:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-09-07 14:44:24 +03:00
|
|
|
public override IIndexerRequestGenerator GetRequestGenerator()
|
2014-04-22 01:50:43 +03:00
|
|
|
{
|
2015-03-03 02:10:37 +02:00
|
|
|
return new FanzubRequestGenerator() { Settings = Settings };
|
2014-05-19 22:14:41 +03:00
|
|
|
}
|
|
|
|
|
2014-09-07 14:44:24 +03:00
|
|
|
public override IParseIndexerResponse GetParser()
|
2014-05-19 22:14:41 +03:00
|
|
|
{
|
2014-09-07 14:44:24 +03:00
|
|
|
return new RssParser() { UseEnclosureUrl = true, UseEnclosureLength = true };
|
2014-05-19 22:14:41 +03:00
|
|
|
}
|
2014-04-22 01:50:43 +03:00
|
|
|
}
|
|
|
|
}
|