Error when installing addon from zip while using settings.xml
#1
I'm developing custom addon for searching subtitles on Titlovi.com.
I have managed to show list of subtitles and use selected subtitle, now  I need to get username and password from user's Titlovi.com account.
For that I want to use settings.xml with two fields, username and password.
After I added settings.xml in resources folder and tried to install addon from zip file I keep getting error 'Failed to install Addon from zip file'.
I'm using opensubtitles addon as a reference which has similar settings.xml file and that works without problem.

Edit: I forgot to mention, If I install addon without settings.xml and manually copy it to addon installation folder it works without problem.

This is settings.xml I'm using:
Quote:<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
    <category label="Titlovi.com login information">
      <setting id="titlovi-username" type="text" label="Username" default=""/>
      <setting id="titlovi-password" type="text" option = "hidden" label="Password" default=""/>
    </category>   
</settings>
Reply
#2
Guess what fixed it: restarting Kodi...garbage
It looks like Kodi needs to be restarted after addon is uninstalled before you want to install it again from zip.
Reply
#3
I also have this problem. My solution:

I change the name of the folder where the zip file is, every time I go to install the addon.

Code:
First time:
c:\AAA\my_addon.zip

Second time:
c:\BBB\my_addon.zip
Reply
#4
thanks, i will try your solution
Reply

Logout Mark Read Team Forum Stats Members Help
Error when installing addon from zip while using settings.xml0