Hi folks,
I’m new to Kodi add-on development. I’m working on a simple project that gets videos from a particular website. I want two list items on the first screen of my add-on: “Recently added” and “Search”.
I’ve been following the video add-on tutorial by Roman VM (thanks!) very closely, and was able to implement the first one successfully. But I’m lost as to how I would implement a search function. I tried searching the forums and wasn’t able to find any helpful answer that I understood. I’ve seen and used the search buttons in many other add-ons so I know it’s possible.
This what I need to implement. When the user presses “Search”, a modal keyboard appears, and the user input is then stored in a variable. I think the router function would have to pause (?) while this process takes place. I know how to take the user input, generate the query and then return the results to the add-on. I just don’t know how to get user input in the middle and use that data when loading the next page.
I would really appreciate it if someone could help me with this. Thanks.