mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 09:09:42 +02:00
Merge branch 'markus101'
Conflicts: NzbDrone.Core/Providers/Indexer/IndexerProviderBase.cs
This commit is contained in:
@@ -206,7 +206,7 @@ namespace NzbDrone.Core
|
|||||||
return title.ToLower().Contains("proper");
|
return title.ToLower().Contains("proper");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static QualityTypes ParseQuality(string name)
|
internal static QualityTypes ParseQuality(string name)
|
||||||
{
|
{
|
||||||
Logger.Trace("Trying to parse quality for {0}", name);
|
Logger.Trace("Trying to parse quality for {0}", name);
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
using System.ServiceModel.Syndication;
|
using System.ServiceModel.Syndication;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Core.Model;
|
using NzbDrone.Core.Model;
|
||||||
using NzbDrone.Core.Providers.Core;
|
using NzbDrone.Core.Providers.Core;
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
using System.ServiceModel.Syndication;
|
using System.ServiceModel.Syndication;
|
||||||
|
using NzbDrone.Core.Model;
|
||||||
using NzbDrone.Core.Providers.Core;
|
using NzbDrone.Core.Providers.Core;
|
||||||
using SubSonic.Repository;
|
using SubSonic.Repository;
|
||||||
|
|
||||||
@@ -32,5 +33,16 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||||||
{
|
{
|
||||||
return item.Id;
|
return item.Id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
return currentResult;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user