@ -1,4 +1,4 @@
using System.Collections.Generic ;
using System.Collections.Generic ;
using System.Linq ;
using NzbDrone.Common.Http ;
using NzbDrone.Common.Serializer ;
@ -13,37 +13,10 @@ namespace NzbDrone.Core.Indexers.HDBits
public virtual IndexerPageableRequestChain GetRecentRequests ( )
{
var pageableRequests = new IndexerPageableRequestChain ( ) ;
pageableRequests . Add ( GetRequest ( new TorrentQuery ( ) ) ) ;
return pageableRequests ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( AnimeEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( SpecialEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( DailyEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( SeasonSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( SingleEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( MovieSearchCriteria searchCriteria )
{
var pageableRequests = new IndexerPageableRequestChain ( ) ;
@ -86,9 +59,40 @@ namespace NzbDrone.Core.Indexers.HDBits
query . Username = Settings . Username ;
query . Passkey = Settings . ApiKey ;
// Require Internal only if came from RSS sync
if ( Settings . RequireInternal & & query . ImdbInfo = = null )
{
query . Origin = 1 ;
}
request . SetContent ( query . ToJson ( ) ) ;
yield return new IndexerRequest ( request ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( AnimeEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( SpecialEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( DailyEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( SeasonSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
public virtual IndexerPageableRequestChain GetSearchRequests ( SingleEpisodeSearchCriteria searchCriteria )
{
return new IndexerPageableRequestChain ( ) ;
}
}
}