|
|
@ -4,6 +4,7 @@ using System.IO;
|
|
|
|
using System.Net;
|
|
|
|
using System.Net;
|
|
|
|
using System.ServiceModel.Syndication;
|
|
|
|
using System.ServiceModel.Syndication;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Helpers;
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
using NzbDrone.Core.Providers.Core;
|
|
|
|
using NzbDrone.Core.Providers.Core;
|
|
|
|
using NzbDrone.Core.Repository;
|
|
|
|
using NzbDrone.Core.Repository;
|
|
|
@ -147,17 +148,17 @@ namespace NzbDrone.Core.Providers.Indexer
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//var sabTitle = _sabProvider.GetSabTitle(parseResult);
|
|
|
|
var sabTitle = _sabProvider.GetSabTitle(parseResult);
|
|
|
|
|
|
|
|
|
|
|
|
//if (_sabProvider.IsInQueue(sabTitle))
|
|
|
|
if (_sabProvider.IsInQueue(sabTitle))
|
|
|
|
//{
|
|
|
|
{
|
|
|
|
// return;
|
|
|
|
return;
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//if (!_sabProvider.AddByUrl(NzbDownloadUrl(feedItem), sabTitle))
|
|
|
|
if (!_sabProvider.AddByUrl(NzbDownloadUrl(feedItem), sabTitle))
|
|
|
|
//{
|
|
|
|
{
|
|
|
|
// return;
|
|
|
|
return;
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var episode in episodes)
|
|
|
|
foreach (var episode in episodes)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -185,6 +186,14 @@ namespace NzbDrone.Core.Providers.Indexer
|
|
|
|
|
|
|
|
|
|
|
|
var seriesInfo = _seriesProvider.FindSeries(episodeParseResult.CleanTitle);
|
|
|
|
var seriesInfo = _seriesProvider.FindSeries(episodeParseResult.CleanTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (seriesInfo == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var seriesId = SceneNameHelper.FindByName(episodeParseResult.CleanTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (seriesId != 0)
|
|
|
|
|
|
|
|
seriesInfo = _seriesProvider.GetSeries(seriesId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (seriesInfo != null)
|
|
|
|
if (seriesInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
episodeParseResult.SeriesId = seriesInfo.SeriesId;
|
|
|
|
episodeParseResult.SeriesId = seriesInfo.SeriesId;
|
|
|
|