This commit is contained in:
2022-12-08 14:38:23 +08:00
parent cd0093b8d8
commit 0bb49cbe6c
3 changed files with 27 additions and 18 deletions
@@ -51,20 +51,21 @@ namespace IRaCIS.Core.Application.Services
.SelectMany(u =>
{
if (u.NumberOfFrames == 1)
{
return new List<string>{u.Path};
}
else
if (u.NumberOfFrames > 1)
{
var pathList = new List<string>();
for (int i = 1; i <= u.NumberOfFrames; i++)
{
pathList.Add(u.Path+ "?frame=" + (i - 1));
pathList.Add(u.Path + "?frame=" + (i - 1));
}
return pathList;
}
else
{
return new List<string> { u.Path };
}
})
.ToList();
}