Fixed: TheXEM mappings not used properly when parsing season packs
This commit is contained in:
parent
a8a9399469
commit
87f10bf7bb
|
@ -207,7 +207,14 @@ namespace NzbDrone.Core.Parser
|
||||||
{
|
{
|
||||||
if (parsedEpisodeInfo.FullSeason)
|
if (parsedEpisodeInfo.FullSeason)
|
||||||
{
|
{
|
||||||
return _episodeService.GetEpisodesBySeason(series.Id, mappedSeasonNumber);
|
if (series.UseSceneNumbering && sceneSource)
|
||||||
|
{
|
||||||
|
return _episodeService.GetEpisodesBySceneSeason(series.Id, mappedSeasonNumber);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return _episodeService.GetEpisodesBySeason(series.Id, mappedSeasonNumber);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parsedEpisodeInfo.IsDaily)
|
if (parsedEpisodeInfo.IsDaily)
|
||||||
|
|
|
@ -19,6 +19,7 @@ namespace NzbDrone.Core.Tv
|
||||||
List<Episode> Find(int seriesId, string date);
|
List<Episode> Find(int seriesId, string date);
|
||||||
List<Episode> GetEpisodes(int seriesId);
|
List<Episode> GetEpisodes(int seriesId);
|
||||||
List<Episode> GetEpisodes(int seriesId, int seasonNumber);
|
List<Episode> GetEpisodes(int seriesId, int seasonNumber);
|
||||||
|
List<Episode> GetEpisodesBySceneSeason(int seriesId, int sceneSeasonNumber);
|
||||||
List<Episode> GetEpisodeByFileId(int fileId);
|
List<Episode> GetEpisodeByFileId(int fileId);
|
||||||
List<Episode> EpisodesWithFiles(int seriesId);
|
List<Episode> EpisodesWithFiles(int seriesId);
|
||||||
PagingSpec<Episode> EpisodesWithoutFiles(PagingSpec<Episode> pagingSpec, bool includeSpecials);
|
PagingSpec<Episode> EpisodesWithoutFiles(PagingSpec<Episode> pagingSpec, bool includeSpecials);
|
||||||
|
@ -78,6 +79,13 @@ namespace NzbDrone.Core.Tv
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Episode> GetEpisodesBySceneSeason(int seriesId, int seasonNumber)
|
||||||
|
{
|
||||||
|
return Query.Where(s => s.SeriesId == seriesId)
|
||||||
|
.AndWhere(s => s.SceneSeasonNumber == seasonNumber)
|
||||||
|
.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
public List<Episode> GetEpisodeByFileId(int fileId)
|
public List<Episode> GetEpisodeByFileId(int fileId)
|
||||||
{
|
{
|
||||||
return Query.Where(e => e.EpisodeFileId == fileId).ToList();
|
return Query.Where(e => e.EpisodeFileId == fileId).ToList();
|
||||||
|
|
|
@ -23,6 +23,7 @@ namespace NzbDrone.Core.Tv
|
||||||
Episode FindEpisode(int seriesId, string date, int? part);
|
Episode FindEpisode(int seriesId, string date, int? part);
|
||||||
List<Episode> GetEpisodeBySeries(int seriesId);
|
List<Episode> GetEpisodeBySeries(int seriesId);
|
||||||
List<Episode> GetEpisodesBySeason(int seriesId, int seasonNumber);
|
List<Episode> GetEpisodesBySeason(int seriesId, int seasonNumber);
|
||||||
|
List<Episode> GetEpisodesBySceneSeason(int seriesId, int sceneSeasonNumber);
|
||||||
List<Episode> EpisodesWithFiles(int seriesId);
|
List<Episode> EpisodesWithFiles(int seriesId);
|
||||||
PagingSpec<Episode> EpisodesWithoutFiles(PagingSpec<Episode> pagingSpec);
|
PagingSpec<Episode> EpisodesWithoutFiles(PagingSpec<Episode> pagingSpec);
|
||||||
List<Episode> GetEpisodesByFileId(int episodeFileId);
|
List<Episode> GetEpisodesByFileId(int episodeFileId);
|
||||||
|
@ -98,6 +99,11 @@ namespace NzbDrone.Core.Tv
|
||||||
return _episodeRepository.GetEpisodes(seriesId, seasonNumber);
|
return _episodeRepository.GetEpisodes(seriesId, seasonNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Episode> GetEpisodesBySceneSeason(int seriesId, int sceneSeasonNumber)
|
||||||
|
{
|
||||||
|
return _episodeRepository.GetEpisodesBySceneSeason(seriesId, sceneSeasonNumber);
|
||||||
|
}
|
||||||
|
|
||||||
public Episode FindEpisodeByTitle(int seriesId, int seasonNumber, string releaseTitle)
|
public Episode FindEpisodeByTitle(int seriesId, int seasonNumber, string releaseTitle)
|
||||||
{
|
{
|
||||||
// TODO: can replace this search mechanism with something smarter/faster/better
|
// TODO: can replace this search mechanism with something smarter/faster/better
|
||||||
|
|
Loading…
Reference in New Issue