Bug description
Browsing live streams for a game or category can fail when opening the second page, even though Twitch still has more live streams available.
Kodi shows the error:
No streams found
The behavior is not consistent across every game or category. It is reproducible for broad categories such as Sports and Retro, which show thousands of matching live streams on twitch.tv, while Kodi fails to retrieve the second page.
Steps to reproduce
- Open the Twitch add-on in Kodi.
- From the main menu, browse to Live Streams.
- Select a game or category with many live streams, for example Sports or Retro.
- Open the next-page entry at the end of the first result page.
Actual behavior
The second page shows No streams found even though more matching streams are available on Twitch.
Expected behavior
The add-on should use Twitch's returned pagination cursor to retrieve and display the next result page. Further pages should remain available while Twitch returns another cursor and matching streams.
Additional context
The problem appears to depend on the selected game or category. Some categories paginate correctly, while categories with a large or differently organized result set fail on page two.
The game-stream route currently forwards an after value through the Kodi next-page URL and into the Twitch API request. The implementation should be tested with representative multi-page Helix responses before deciding whether the fault is in cursor transport, request parameter construction, caching, or Twitch's response handling.
Bug description
Browsing live streams for a game or category can fail when opening the second page, even though Twitch still has more live streams available.
Kodi shows the error:
The behavior is not consistent across every game or category. It is reproducible for broad categories such as Sports and Retro, which show thousands of matching live streams on twitch.tv, while Kodi fails to retrieve the second page.
Steps to reproduce
Actual behavior
The second page shows No streams found even though more matching streams are available on Twitch.
Expected behavior
The add-on should use Twitch's returned pagination cursor to retrieve and display the next result page. Further pages should remain available while Twitch returns another cursor and matching streams.
Additional context
The problem appears to depend on the selected game or category. Some categories paginate correctly, while categories with a large or differently organized result set fail on page two.
The game-stream route currently forwards an
aftervalue through the Kodi next-page URL and into the Twitch API request. The implementation should be tested with representative multi-page Helix responses before deciding whether the fault is in cursor transport, request parameter construction, caching, or Twitch's response handling.