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 08:20:26 +03:00
|
|
|
public class Eztv : IndexerBase<NullSetting>
|
2013-09-14 02:17:58 +03:00
|
|
|
{
|
|
|
|
public override string Name
|
|
|
|
{
|
|
|
|
get { return "Eztv"; }
|
|
|
|
}
|
|
|
|
|
2013-09-14 03:10:39 +03:00
|
|
|
public override IndexerKind Kind
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return IndexerKind.Torrent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-14 02:17:58 +03:00
|
|
|
public override bool EnableByDefault
|
|
|
|
{
|
|
|
|
get { return false; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public override IParseFeed Parser
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new BasicTorrentRssParser();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public override IEnumerable<string> RecentFeed
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new[]
|
|
|
|
{
|
|
|
|
"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 epidose airdate. they only support release date.
|
|
|
|
return new string[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|