2013-09-14 02:17:58 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2013-09-22 08:20:26 +03:00
|
|
|
using NzbDrone.Core.ThingiProvider;
|
2013-09-14 02:17:58 +03:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Eztv
|
|
|
|
{
|
2013-09-22 23:00:29 +03:00
|
|
|
public class Eztv : IndexerBase<NullConfig>
|
2013-09-14 02:17:58 +03:00
|
|
|
{
|
2013-09-22 23:00:29 +03:00
|
|
|
public override DownloadProtocol Protocol
|
2013-09-14 03:10:39 +03:00
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2013-09-22 23:00:29 +03:00
|
|
|
return DownloadProtocol.Torrent;
|
2013-09-14 03:10:39 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-14 02:17:58 +03:00
|
|
|
public override IParseFeed Parser
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new BasicTorrentRssParser();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public override IEnumerable<string> RecentFeed
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2013-09-22 23:00:29 +03:00
|
|
|
yield return "http://www.ezrss.it/feed/";
|
2013-09-14 02:17:58 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
2013-09-22 23:00:29 +03:00
|
|
|
//EZTV doesn't support searching based on actual episode airdate. they only support release date.
|
2013-09-14 02:17:58 +03:00
|
|
|
return new string[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|