don't organize episode if series has no provider ids

This commit is contained in:
Luke Pulverenti 2016-01-28 13:29:41 -05:00
parent af599ed5d7
commit 2d97423a40

View File

@ -189,6 +189,15 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
return Task.FromResult(true);
}
if (!series.ProviderIds.Any())
{
var msg = string.Format("Series has not yet been identified: {0}. If you just added the series, please run a library scan or use the identify feature to identify it.", seriesName);
result.Status = FileSortingStatus.Failure;
result.StatusMessage = msg;
_logger.Warn(msg);
return Task.FromResult(true);
}
return OrganizeEpisode(sourcePath,
series,
seasonNumber,
@ -333,7 +342,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
// TODO: Support date-naming?
if (!seasonNumber.HasValue || episodeNumber.HasValue)
{
return new List<string> ();
return new List<string>();
}
var episodePaths = series.GetRecursiveChildren()