1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-28 23:16:32 -04:00

New: Consider all scene SxxE00 releases Specials as well.

* New: Consider all scene SxxE00 releases Specials as well.

* Cleanup special episode titles and handle E00 specials with existing scenemappings.

* Moved handling of scene mapped E00 to central function.
This commit is contained in:
Taloth
2018-01-04 21:49:16 +01:00
committed by GitHub
parent ad10349878
commit d0e8aef949
9 changed files with 94 additions and 18 deletions
@@ -57,17 +57,29 @@ namespace NzbDrone.Core.Parser.Model
{
get
{
// if we don't have eny episode numbers we are likely a special episode and need to do a search by episode title
// if we don't have any episode numbers we are likely a special episode and need to do a search by episode title
return (AirDate.IsNullOrWhiteSpace() &&
SeriesTitle.IsNullOrWhiteSpace() &&
(EpisodeNumbers.Length == 0 || SeasonNumber == 0) ||
!SeriesTitle.IsNullOrWhiteSpace() && Special);
(EpisodeNumbers.Length == 0 || SeasonNumber == 0) || !SeriesTitle.IsNullOrWhiteSpace() && Special) ||
EpisodeNumbers.Length == 1 && EpisodeNumbers[0] == 0;
}
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set {}
}
public bool IsPossibleSceneSeasonSpecial
{
get
{
// SxxE00 episodes
return SeasonNumber != 0 && EpisodeNumbers.Length == 1 && EpisodeNumbers[0] == 0;
}
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set { }
}
public override string ToString()
{