mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Reduce one query
Signed-off-by: Petrus.Z <silencly07@gmail.com>
This commit is contained in:
parent
6565b0cfbe
commit
263bbf897a
@ -79,12 +79,6 @@ namespace Emby.Server.Implementations.Library.Validators
|
||||
Limit = pagesize,
|
||||
Recursive = true
|
||||
});
|
||||
startIndex += pagesize;
|
||||
|
||||
if (!movies.Any())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
foreach (var m in movies)
|
||||
{
|
||||
@ -100,6 +94,13 @@ namespace Emby.Server.Implementations.Library.Validators
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (movies.Count < pagesize)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
startIndex += pagesize;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user