mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Added newzbing tests, fixed quality parse bugs
This commit is contained in:
parent
ae8465834b
commit
5be99200c6
4 changed files with 82 additions and 23 deletions
|
@ -9,7 +9,8 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
{
|
||||
public class Newzbin : IndexerBase
|
||||
{
|
||||
public Newzbin(HttpProvider httpProvider, ConfigProvider configProvider, IndexerProvider indexerProvider) : base(httpProvider, configProvider, indexerProvider)
|
||||
public Newzbin(HttpProvider httpProvider, ConfigProvider configProvider, IndexerProvider indexerProvider)
|
||||
: base(httpProvider, configProvider, indexerProvider)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -36,17 +37,19 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
|
||||
protected override string NzbDownloadUrl(SyndicationItem item)
|
||||
{
|
||||
return item.Id + "/nzb";
|
||||
return item.Id + "nzb";
|
||||
}
|
||||
|
||||
protected override EpisodeParseResult CustomParser(SyndicationItem item, EpisodeParseResult currentResult)
|
||||
{
|
||||
var quality = Parser.ParseQuality(item.Summary.Text);
|
||||
var proper = Parser.ParseProper(item.Summary.Text);
|
||||
|
||||
currentResult.Quality = quality;
|
||||
currentResult.Proper = proper;
|
||||
if (currentResult != null)
|
||||
{
|
||||
var quality = Parser.ParseQuality(item.Summary.Text);
|
||||
var proper = Parser.ParseProper(item.Summary.Text);
|
||||
|
||||
currentResult.Quality = quality;
|
||||
currentResult.Proper = proper;
|
||||
}
|
||||
return currentResult;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue