v15 Help to code "Next Page" - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154) +---- Thread: v15 Help to code "Next Page" (/showthread.php?tid=251178) |
Help to code "Next Page" - dranix - 2015-12-08 Hi, I'm just starting out with coding add-ons. I have figured out how to read the values from the webpage and display them in the add-on menu. But if the site has "Next Page" features,how can i code it in the add-on? Thanks. RE: Help to code "Next Page" - learningit - 2015-12-08 (2015-12-08, 08:32)dranix Wrote: Hi, This really depends on how "next page" is managed by the website. You can have a look here to see how I dealt with one website: https://github.com/learningit/plugin.video.sonyliv/blob/master/default.py#L181 This website uses a url+'?offset=offset_count" scheme to grab the next page. Most importantly, remember that the "next page" link is a folder, not a playable item - so use isFolder=True for xbmcplugin.addDirectoryItem and do not set the "isPlayable" property on the listitem. EDIT: In the future it would be better to ask this in the Development->Addons forum thread. |