mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-29 02:57:15 +02:00
50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using NzbDrone.Core.ThingiProvider;
|
|
|
|
namespace NzbDrone.Core.Indexers.Eztv
|
|
{
|
|
public class Eztv : IndexerBase<NullConfig>
|
|
{
|
|
public override DownloadProtocol Protocol
|
|
{
|
|
get
|
|
{
|
|
return DownloadProtocol.Torrent;
|
|
}
|
|
}
|
|
|
|
public override IParseFeed Parser
|
|
{
|
|
get
|
|
{
|
|
return new BasicTorrentRssParser();
|
|
}
|
|
}
|
|
|
|
public override IEnumerable<string> RecentFeed
|
|
{
|
|
get
|
|
{
|
|
yield return "http://www.ezrss.it/feed/";
|
|
}
|
|
}
|
|
|
|
public override IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int episodeNumber)
|
|
{
|
|
yield return string.Format("http://www.ezrss.it/search/index.php?show_name={0}&season={1}&episode={2}&mode=rss", seriesTitle, seasonNumber, episodeNumber);
|
|
}
|
|
|
|
public override IEnumerable<string> GetSeasonSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int offset)
|
|
{
|
|
yield return string.Format("http://www.ezrss.it/search/index.php?show_name={0}&season={1}&mode=rss", seriesTitle, seasonNumber);
|
|
|
|
}
|
|
|
|
public override IEnumerable<string> GetDailyEpisodeSearchUrls(string seriesTitle, int tvRageId, DateTime date)
|
|
{
|
|
//EZTV doesn't support searching based on actual episode airdate. they only support release date.
|
|
return new string[0];
|
|
}
|
|
}
|
|
} |