![]() |
Bug and Patch: limitStart is ignored if it's greater than the number of results - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: Bug and Patch: limitStart is ignored if it's greater than the number of results (/showthread.php?tid=357336) |
Bug and Patch: limitStart is ignored if it's greater than the number of results - SumnerH - 2020-09-27 I just put in a pull request with this on github, but I'm very new to github and not sure I did that correctly so I wanted to follow up here. Please advise me if I did something wrong, I may have another few bugfixes to contribute and want to make sure I'm going through the proper process. Note that 1 test in the test suite ("make test") is failing for me right now: that test fails with or without my patch and appears completely unrelated. Currently, if the query code needs to apply limits manually it ignores a limitStart which is greater than limitEnd. So if there are only 10 movies, and I request movies 11-20 sorted by dateadded, then it returns movies 1-10 again.
Quote:diff --git a/xbmc/utils/SortUtils.cpp b/xbmc/utils/SortUtils.cpp RE: Bug and Patch: limitStart is ignored if it's greater than the number of results - Fuzzard - 2020-09-28 Looks like you've done everything right regarding the PR submission. In advance i'll say thanks for the PR, always appreciated. Your reasoning sounds sane for the change, hopefully we'll have someone have a look over it in the next day or two. |