2024-02-07, 22:43
Hi,
I've been trying to get started on plugin development. I'm kind of a beginner at python, so don't mind me writing some stupid questions. I know the basics, and what I don't know I can always learn. However Kodi addons are a huge step up for me, since there aren't many examples on getting started. I wanted to start off with some basics. A simple search engine. Just a text field and a confirm button at the bottom similarly to the YouTube addons search button. Whenever I click open on the addon, I want a new window to popup. However I can't get the window to show. I usually ask ChatGPT to generate some starting code, so that's the first thing I did. After solving a bunch of errors I keep getting stuck on these two problems. It either does nothing with no errors related to the project, or it loops indefinitely with no way to go back to the previous menu. Right now it doesn't loop and doesn't run at all. I will post both the addon.xml file, and the plugin.py file below, both of which are contained in the same directory. The icon and fanart of Spotify, are from the existing Spotify plugin, so I won't share them here. Here are both the files:
https://paste.kodi.tv/inugevamig.kodi
https://paste.kodi.tv/onejazicic
If anyone can explain to me what I'm doing wrong, please tell me. Thanks in advance!
I've been trying to get started on plugin development. I'm kind of a beginner at python, so don't mind me writing some stupid questions. I know the basics, and what I don't know I can always learn. However Kodi addons are a huge step up for me, since there aren't many examples on getting started. I wanted to start off with some basics. A simple search engine. Just a text field and a confirm button at the bottom similarly to the YouTube addons search button. Whenever I click open on the addon, I want a new window to popup. However I can't get the window to show. I usually ask ChatGPT to generate some starting code, so that's the first thing I did. After solving a bunch of errors I keep getting stuck on these two problems. It either does nothing with no errors related to the project, or it loops indefinitely with no way to go back to the previous menu. Right now it doesn't loop and doesn't run at all. I will post both the addon.xml file, and the plugin.py file below, both of which are contained in the same directory. The icon and fanart of Spotify, are from the existing Spotify plugin, so I won't share them here. Here are both the files:
https://paste.kodi.tv/inugevamig.kodi
https://paste.kodi.tv/onejazicic
If anyone can explain to me what I'm doing wrong, please tell me. Thanks in advance!