2011-04-04 07:21:07 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.ServiceModel.Syndication;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using NzbDrone.Core.Providers.Core;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers.Feed
|
|
|
|
|
{
|
|
|
|
|
class NzbsOrgFeedProvider : FeedProviderBase
|
|
|
|
|
{
|
2011-04-07 02:25:52 +00:00
|
|
|
|
public NzbsOrgFeedProvider(ISeriesProvider seriesProvider, ISeasonProvider seasonProvider, IEpisodeProvider episodeProvider, IConfigProvider configProvider, HttpProvider httpProvider)
|
|
|
|
|
: base(seriesProvider, seasonProvider, episodeProvider, configProvider, httpProvider)
|
2011-04-04 07:21:07 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string[] URL
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new[] { string.Format("http://nzbs.org/rss.php?type=1&i={0}&h={1}", _configProvider.NzbsOrgUId, _configProvider.NzbsOrgHash) };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "Nzbs.Org"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string NzbDownloadUrl(SyndicationItem item)
|
|
|
|
|
{
|
|
|
|
|
return item.Id.Replace("action=view", "action=getnzb");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|