mirror of
https://github.com/Radarr/Radarr
synced 2025-02-20 21:37:18 +00:00
RssSync improvements and fixes.
This commit is contained in:
parent
a413a9d53d
commit
21ac5d804c
2 changed files with 8 additions and 4 deletions
|
@ -77,6 +77,7 @@ public bool IsNeeded(EpisodeModel episode)
|
|||
if (IsSeasonIgnored(episode))
|
||||
return false;
|
||||
|
||||
//Quickly check if this quality is wanted at all (We will later check if the quality is still needed)
|
||||
if (!_series.QualityWanted(episode.SeriesId, episode.Quality))
|
||||
{
|
||||
Logger.Debug("Quality [{0}] is not wanted for: {1}", episode.Quality, episode.SeriesTitle);
|
||||
|
@ -88,7 +89,7 @@ public bool IsNeeded(EpisodeModel episode)
|
|||
|
||||
if (dbEpisode == null)
|
||||
{
|
||||
//Todo: How do we want to handle this really? Episode could be released before information is on TheTvDB (Parks and Rec did this a lot in the first season from experience)
|
||||
//Todo: How do we want to handle this really? Episode could be released before information is on TheTvDB (Parks and Rec did this a lot in the first season, from experience)
|
||||
throw new NotImplementedException("Episode was not found in the database");
|
||||
}
|
||||
|
||||
|
@ -126,7 +127,7 @@ public bool IsNeeded(EpisodeModel episode)
|
|||
}
|
||||
}
|
||||
}
|
||||
return true; //If we get to this point and the file has not yet been rejected then accept it
|
||||
return true;
|
||||
}
|
||||
|
||||
//IsInHistory? (NZBDrone)
|
||||
|
@ -136,7 +137,7 @@ public bool IsNeeded(EpisodeModel episode)
|
|||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return true;//If we get to this point and the file has not yet been rejected then accept it
|
||||
}
|
||||
|
||||
public void RefreshEpisodeInfo(int seriesId)
|
||||
|
|
|
@ -164,8 +164,11 @@ private void QueueIfWanted(NzbInfoModel nzb)
|
|||
return;
|
||||
|
||||
var titleFix = GetTitleFix(new List<EpisodeParseResult> { episode }, episodeModel.SeriesId);
|
||||
_sab.IsInQueue(titleFix);
|
||||
|
||||
if (_sab.IsInQueue(titleFix))
|
||||
return;
|
||||
}
|
||||
var sabResult = _sab.AddByUrl(nzb.Link.ToString(), nzb.TitleFix);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue