2013-04-07 07:30:37 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
|
|
|
|
{
|
2013-04-10 23:44:48 +00:00
|
|
|
|
public class Omgwtfnzbs : IndexerWithSetting<OmgwtfnzbsSetting>
|
2013-04-07 07:30:37 +00:00
|
|
|
|
{
|
|
|
|
|
public override string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "omgwtfnzbs"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override IEnumerable<string> RecentFeed
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
|
2013-05-02 01:59:09 +00:00
|
|
|
|
yield return String.Format("http://rss.omgwtfnzbs.org/rss-search.php?catid=19,20&user={0}&api={1}&eng=1",
|
2013-04-10 23:44:48 +00:00
|
|
|
|
Settings.Username, Settings.ApiKey);
|
2013-04-07 07:30:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-06 07:38:16 +00:00
|
|
|
|
public override IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int episodeNumber)
|
2013-04-07 07:30:37 +00:00
|
|
|
|
{
|
|
|
|
|
var searchUrls = new List<string>();
|
|
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
|
{
|
|
|
|
|
searchUrls.Add(String.Format("{0}&search={1}+S{2:00}E{3:00}", url, seriesTitle, seasonNumber, episodeNumber));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-06 07:38:16 +00:00
|
|
|
|
public override IEnumerable<string> GetDailyEpisodeSearchUrls(string seriesTitle, int tvRageId, DateTime date)
|
2013-04-07 07:30:37 +00:00
|
|
|
|
{
|
|
|
|
|
var searchUrls = new List<String>();
|
|
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
|
{
|
|
|
|
|
searchUrls.Add(String.Format("{0}&search={1}+{2:yyyy MM dd}", url, seriesTitle, date));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-06 07:38:16 +00:00
|
|
|
|
public override IEnumerable<string> GetSeasonSearchUrls(string seriesTitle, int tvRageId, int seasonNumber)
|
2013-04-07 07:30:37 +00:00
|
|
|
|
{
|
|
|
|
|
var searchUrls = new List<String>();
|
|
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
|
{
|
|
|
|
|
searchUrls.Add(String.Format("{0}&search={1}+S{2:00}", url, seriesTitle, seasonNumber));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-06 07:38:16 +00:00
|
|
|
|
public override IEnumerable<string> GetPartialSeasonSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int episodeWildcard)
|
2013-04-07 07:30:37 +00:00
|
|
|
|
{
|
|
|
|
|
var searchUrls = new List<String>();
|
|
|
|
|
|
|
|
|
|
foreach (var url in RecentFeed)
|
|
|
|
|
{
|
|
|
|
|
searchUrls.Add(String.Format("{0}&search={1}+S{2:00}E{3}", url, seriesTitle, seasonNumber, episodeWildcard));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return searchUrls;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|