2013-04-07 09:30:37 +02:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.NzbClub
|
|
|
|
{
|
2013-05-02 03:59:09 +02:00
|
|
|
public class NzbClub : IndexerBase
|
2013-04-07 09:30:37 +02:00
|
|
|
{
|
2013-05-02 03:59:09 +02:00
|
|
|
public override string Name
|
|
|
|
{
|
|
|
|
get { return "NzbClub"; }
|
|
|
|
}
|
2013-05-03 01:06:08 +02:00
|
|
|
|
2013-07-04 23:20:08 +02:00
|
|
|
public override bool EnableByDefault
|
|
|
|
{
|
|
|
|
get { return false; }
|
|
|
|
}
|
|
|
|
|
2013-05-03 01:06:08 +02:00
|
|
|
public override IParseFeed Parser
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new NzbClubParser();
|
|
|
|
}
|
|
|
|
}
|
2013-05-02 03:59:09 +02:00
|
|
|
|
2013-04-07 09:30:37 +02:00
|
|
|
public override IEnumerable<string> RecentFeed
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new[]
|
|
|
|
{
|
|
|
|
String.Format("http://www.nzbclub.com/nzbfeed.aspx?ig=2&gid=102952&st=1&ns=1&q=%23a.b.teevee"),
|
|
|
|
String.Format("http://www.nzbclub.com/nzbfeed.aspx?ig=2&gid=5542&st=1&ns=1&q=")
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-06 09:38:16 +02:00
|
|
|
public override IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int episodeNumber)
|
2013-04-07 09:30:37 +02:00
|
|
|
{
|
|
|
|
var searchUrls = new List<string>();
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
{
|
|
|
|
searchUrls.Add(String.Format("{0}+{1}+s{2:00}e{3:00}", url, seriesTitle, seasonNumber, episodeNumber));
|
|
|
|
}
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
}
|
|
|
|
|
2013-08-06 09:38:16 +02:00
|
|
|
public override IEnumerable<string> GetSeasonSearchUrls(string seriesTitle, int tvRageId, int seasonNumber)
|
2013-04-07 09:30:37 +02:00
|
|
|
{
|
|
|
|
var searchUrls = new List<string>();
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
{
|
|
|
|
searchUrls.Add(String.Format("{0}+{1}+s{2:00}", url, seriesTitle, seasonNumber));
|
|
|
|
}
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
}
|
|
|
|
|
2013-08-06 09:38:16 +02:00
|
|
|
public override IEnumerable<string> GetDailyEpisodeSearchUrls(string seriesTitle, int tvRageId, DateTime date)
|
2013-04-07 09:30:37 +02:00
|
|
|
{
|
|
|
|
var searchUrls = new List<String>();
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
{
|
|
|
|
searchUrls.Add(String.Format("{0}+{1}+{2:yyyy MM dd}", url, seriesTitle, date));
|
|
|
|
}
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|