Kodi Community Forum
Upgrading Addon structure - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Upgrading Addon structure (/showthread.php?tid=373498)



Upgrading Addon structure - Niyaz Tlegen - 2023-06-16

Hello, All I am going to upgrade Addon structure but I updated video addon file in C:/user/roming/addons/plugin video sh/ resource/sosac.py
but I can not see updated code in Kodi player, Please help me.


RE: Upgrading Addon structure - scott967 - 2023-06-18

This seems more like a support question rather than development, but is the path you listed correct?  It should look like (assuming windows):
 
Code:
C:\Users\current_user\AppData\Roaming\Kodi\addons\plugin.video.sh\resource

Or provide the platform on which you are running Kodi. But typically the py files go into some "lib" type folder, not "resource". You can verify by looking at the plugin "addon.xml" file and see what module file gets run -- often "default.py" or "plugin.py". If you open that file and look at the "import" statements you should see what folder is expected as the location for sosac.py (you might need to look at the __init__ file if a package is imported rather than individual module). Of course easiest way is to simply search and replace the existing file wherever it is located.

Alternative would be to get the zip file of the addon, replace the specific file(s) and install the modified zip via kodi UI.

scott s.
.