mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed: Don't try to find episodes if parsing failed
This commit is contained in:
parent
13f540f1f5
commit
c687f45ff6
@ -56,6 +56,11 @@ private List<Episode> GetEpisodes(LocalEpisode localEpisode, bool otherFiles)
|
||||
var bestEpisodeInfoForEpisodes = GetBestEpisodeInfo(localEpisode, otherFiles);
|
||||
var isMediaFile = MediaFileExtensions.Extensions.Contains(Path.GetExtension(localEpisode.Path));
|
||||
|
||||
if (bestEpisodeInfoForEpisodes == null)
|
||||
{
|
||||
return new List<Episode>();
|
||||
}
|
||||
|
||||
if (ValidateParsedEpisodeInfo.ValidateForSeriesType(bestEpisodeInfoForEpisodes, localEpisode.Series, isMediaFile))
|
||||
{
|
||||
return _parsingService.GetEpisodes(bestEpisodeInfoForEpisodes, localEpisode.Series, localEpisode.SceneSource);
|
||||
|
Loading…
Reference in New Issue
Block a user