1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 10:07:10 +00:00
Lidarr/NzbDrone.Core/Indexers/Eztv/Eztv.cs
Keivan Beigi 5fc4cd29a3 added torrent feature toggle.
dropped NzbClub.
2013-09-13 17:10:39 -07:00

62 lines
No EOL
1.8 KiB
C#

using System;
using System.Collections.Generic;
namespace NzbDrone.Core.Indexers.Eztv
{
public class Eztv : IndexerBase
{
public override string Name
{
get { return "Eztv"; }
}
public override IndexerKind Kind
{
get
{
return IndexerKind.Torrent;
}
}
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];
}
}
}