You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
At the top of the page where the Prev/Next buttons are, the Next button is able to be clicked even when there are no longer streams to be displayed. It continues to bring up blank pages.
Expected Behavior
Once you reach the limit of streams to be displayed, the Next button should become inaccessible.
Reproduce
Clone the repository
Browse to the main index.php page
Search for a game (i.e. just use Cuphead for an example)
Twitch used to provide a variable with the total amount of streams available for one's query, but they removed it earlier this year. I haven't found an alternative for at least knowing when there are no more stream left, if the amount of streams is less than 1000 (Starting this year you can only access the first 1000 streams of any particular query).
The best I can think of, off the top of my head, is to compare the amount of streams returned with the specified limit and if amount of streams is less than the limit, disable the next button. It won't work for the edge case where the total amount of stream equal the limit, but it's the best solution I have at the moment.
Environment
OS: CentOS 7
PHP: 7.3.13
Apache: 2.4.6
Issue
At the top of the page where the Prev/Next buttons are, the Next button is able to be clicked even when there are no longer streams to be displayed. It continues to bring up blank pages.
Expected Behavior
Once you reach the limit of streams to be displayed, the Next button should become inaccessible.
Reproduce
Cuphead
for an example)Additional Information
The text was updated successfully, but these errors were encountered: