mirror of https://github.com/Sonarr/Sonarr
26 lines
761 B
C#
26 lines
761 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Common.Http;
|
|
|
|
namespace NzbDrone.Core.ImportLists.Rss
|
|
{
|
|
public class RssImportRequestGenerator<TSettings> : IImportListRequestGenerator
|
|
where TSettings : RssImportBaseSettings<TSettings>, new()
|
|
{
|
|
public RssImportBaseSettings<TSettings> Settings { get; set; }
|
|
|
|
public virtual ImportListPageableRequestChain GetListItems()
|
|
{
|
|
var pageableRequests = new ImportListPageableRequestChain();
|
|
|
|
pageableRequests.Add(GetSeriesRequest());
|
|
|
|
return pageableRequests;
|
|
}
|
|
|
|
private IEnumerable<ImportListRequest> GetSeriesRequest()
|
|
{
|
|
yield return new ImportListRequest(Settings.Url, HttpAccept.Rss);
|
|
}
|
|
}
|
|
}
|