Skip to content

Commit d48b352

Browse files
committed
fix username-password display
1 parent 5119e9b commit d48b352

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

addon.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="script.module.tvh2kodi"
33
name="Tvheadend Setup for Kodi"
4-
version="1.8"
4+
version="1.8.1"
55
provider-name="edit4ever">
66
<requires>
77
<import addon="xbmc.python" version="2.6.0"/>
@@ -17,6 +17,8 @@
1717
<description>Tvh2Kodi gives access to the basic Tvheadend settings directly from the Kodi interface. This can be used in place of the Tvheadend web interface to get your Tvheadend backend server configured and running. It is also provides an easy way to scan for new services and channels and to configure your channel EPG sources.
1818

1919
* minimum version of Tvheadend is 4.2
20+
v1.8.1
21+
- fix username-password display
2022
v1.8
2123
- add support for IPTV Networks
2224
- fix error in muxes when 0 muxes available

default.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@
4242
tvh_port = xbmcaddon.Addon().getSetting('tvhport')
4343
tvh_usern = xbmcaddon.Addon().getSetting('usern')
4444
tvh_passw = xbmcaddon.Addon().getSetting('passw')
45+
tvh_url_base = xbmcaddon.Addon().getSetting('tvhurl')
4546
if tvh_usern != "" and tvh_passw != "":
46-
tvh_url = tvh_usern + ":" + tvh_passw + "@" + xbmcaddon.Addon().getSetting('tvhurl')
47+
tvh_url = tvh_usern + ":" + tvh_passw + "@" + tvh_url_base
4748
else:
48-
tvh_url = xbmcaddon.Addon().getSetting('tvhurl')
49+
tvh_url = tvh_url_base
4950

5051
try:
5152
check_url = 'http://' + tvh_url + ':' + tvh_port + '/api/status/connections'
@@ -2159,7 +2160,7 @@ def index():
21592160
})
21602161
items.append(
21612162
{
2162-
'label': 'Tvheadend Backend: ' + tvh_url + ':' + tvh_port,
2163+
'label': 'Tvheadend Backend: ' + tvh_url_base + ':' + tvh_port,
21632164
'path': plugin.url_for(u'tvhclient'),
21642165
'thumbnail':get_icon_path('server'),
21652166
})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
22
<strings>
3+
<string id="32001">Tvheadend Configuration</string>
34
<string id="32000">Tvheadend Backend</string>
45
<string id="32010">IP address</string>
56
<string id="32020">Port</string>
7+
<string id="32022">Tvheadend Username</string>
8+
<string id="32023">Tvheadend Password</string>
9+
<string id="32025">Tvheadend Paths</string>
610
<string id="32030">DVR Recording Path</string>
711
</strings>

resources/settings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
22
<settings>
33
<category label="32000">
4+
<setting label="32001" type="lsep"/>
45
<setting label="32010" type="ipaddress" id="tvhurl" default="127.0.0.1"/>
56
<setting label="32020" type="number" id="tvhport" default="9981"/>
67
<setting label="32022" type="text" id="usern" default=""/>
78
<setting label="32023" type="text" id="passw" default=""/>
8-
<setting label="" type="lsep" />
9+
<setting label="" type="lsep"/>
10+
<setting label="32025" type="lsep"/>
911
<setting label="32030" type="folder" id="dvrstorage" default="" option="writeable"/>
1012
</category>
1113
</settings>

0 commit comments

Comments
 (0)