mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Added notes for handling Full Season releases, decisions to be made on how to handle them and how to correct multi-episode releases (as long as the first episode is needed we mark it as so).
Currently full season releases can be parsed, but will not process.
This commit is contained in:
parent
21e14fbb84
commit
ee00ef8c17
@ -75,6 +75,8 @@ public virtual IList<Episode> GetEpisodeByParseResult(EpisodeParseResult parseRe
|
||||
/// <returns></returns>
|
||||
public virtual bool IsNeeded(EpisodeParseResult parsedReport)
|
||||
{
|
||||
//Todo: Fix this so it properly handles multi-epsiode releases (Currently as long as the first episode is needed we download it)
|
||||
//Todo: for small releases this is less of an issue, but for Full Season Releases this could be an issue if we only need the first episode (or first few)
|
||||
foreach (var episode in parsedReport.Episodes)
|
||||
{
|
||||
var episodeInfo = GetEpisode(parsedReport.SeriesId, parsedReport.SeasonNumber, episode);
|
||||
@ -128,7 +130,6 @@ public virtual bool IsNeeded(EpisodeParseResult parsedReport)
|
||||
Logger.Trace("Quality is past cut-off skipping.");
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -135,6 +135,9 @@ internal void ProcessItem(SyndicationItem feedItem)
|
||||
return;
|
||||
}
|
||||
|
||||
//Todo: How to handle full season files? Currently the episode list is completely empty for these releases
|
||||
//Todo: Should we assume that the release contains all the episodes that belong to this season and add them from the DB?
|
||||
|
||||
if (!_episodeProvider.IsNeeded(parseResult))
|
||||
{
|
||||
_logger.Debug("Episode {0} is not needed. skipping.", parseResult);
|
||||
|
Loading…
Reference in New Issue
Block a user