|
|
@ -21,6 +21,11 @@ namespace MediaBrowser.Server.Implementations.Photos
|
|
|
|
throw new ArgumentException("Empty file found in files list");
|
|
|
|
throw new ArgumentException("Empty file found in files list");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (files.Count == 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (files.Count < 3)
|
|
|
|
if (files.Count < 3)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await GetSingleImage(files, fileSystem).ConfigureAwait(false);
|
|
|
|
return await GetSingleImage(files, fileSystem).ConfigureAwait(false);
|
|
|
@ -68,6 +73,11 @@ namespace MediaBrowser.Server.Implementations.Photos
|
|
|
|
throw new ArgumentException("Empty file found in files list");
|
|
|
|
throw new ArgumentException("Empty file found in files list");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (files.Count == 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (files.Count < 4)
|
|
|
|
if (files.Count < 4)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return await GetSingleImage(files, fileSystem).ConfigureAwait(false);
|
|
|
|
return await GetSingleImage(files, fileSystem).ConfigureAwait(false);
|
|
|
|