2017-11-03, 18:17
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:
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>