mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-22 21:50:36 +02:00
don't organize episode if series has no provider ids
This commit is contained in:
parent
55128c308a
commit
ce813c40c9
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue