@ -13,10 +13,18 @@ namespace NzbDrone.Core.ImportLists.Plex
{
public class PlexImport : HttpImportListBase < PlexListSettings >
{
public readonly IPlexTvService _plexTvService ;
public override string Name = > "Plex Watchlist" ;
public override ImportListType ListType = > ImportListType . Plex ;
public override TimeSpan MinRefreshInterval = > TimeSpan . FromHours ( 6 ) ;
public override bool Enabled = > true ;
public override bool EnableAuto = > false ;
public override int PageSize = > 100 ;
public override TimeSpan RateLimit = > TimeSpan . FromSeconds ( 5 ) ;
private readonly IPlexTvService _plexTvService ;
public PlexImport ( IPlexTvService plexTvService ,
IHttpClient httpClient ,
IImportListStatusService importListStatusService ,
@ -28,11 +36,6 @@ namespace NzbDrone.Core.ImportLists.Plex
_plexTvService = plexTvService ;
}
public override string Name = > "Plex Watchlist" ;
public override int PageSize = > 50 ;
public override bool Enabled = > true ;
public override bool EnableAuto = > false ;
public override ImportListFetchResult Fetch ( )
{
Settings . Validate ( ) . Filter ( "AccessToken" ) . ThrowOnError ( ) ;
@ -47,10 +50,7 @@ namespace NzbDrone.Core.ImportLists.Plex
public override IImportListRequestGenerator GetRequestGenerator ( )
{
return new PlexListRequestGenerator ( _plexTvService , PageSize )
{
Settings = Settings
} ;
return new PlexListRequestGenerator ( _plexTvService , Settings , PageSize ) ;
}
public override object RequestAction ( string action , IDictionary < string , string > query )