mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
WIP on scrolling
This commit is contained in:
parent
ea54dfa3bf
commit
227ec0a6f8
6 changed files with 155 additions and 34 deletions
|
@ -109,9 +109,16 @@ namespace Ombi.Core.Engine.V2
|
|||
// Pages of 20
|
||||
if(toLoad > 20)
|
||||
{
|
||||
throw new ApplicationException("Please load less than 20 items at a time due to a API limit");
|
||||
throw new ApplicationException("Please load less than or equal to 20 items at a time due to a API limit");
|
||||
}
|
||||
|
||||
// TheMovieDb only shows pages of 20, let's work out how many we need to load
|
||||
|
||||
var page = Math.Round((decimal)(currentlyLoaded / 10) / 2, 0);
|
||||
if(page == 0)
|
||||
{
|
||||
// First page
|
||||
}
|
||||
|
||||
|
||||
var result = await MovieApi.PopularMovies(langCode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue