Skip to content

Commit 50d37b0

Browse files
author
Your Name
committed
Fix: Use integer slider for nlziet_live_start_offset setting
Change type from 'number' to 'slider' with option='int' and range='-60,10,300' so Kodi enforces min/max bounds visually and won't accept out-of-range values (which previously caused CSettingsManager to return None, yielding start_offset=0). Co-authored-by: Claude Sonnet 4.6 Signed-off-by: Your Name <you@example.com>
1 parent c1b2ebd commit 50d37b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

channels/channel.nlziet/nlziet/chn_nlziet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"order": 7,
52-
"value": "label=\"30628\" type=\"number\" min=\"-60\" max=\"300\" step=\"1\" default=\"0\"",
52+
"value": "label=\"30628\" type=\"slider\" option=\"int\" range=\"-60,10,300\" default=\"0\"",
5353
"id": "nlziet_live_start_offset"
5454
}
5555
]

resources/settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<setting id="channel_89E7B29E-6356-4276-A435-5FA915377C2C_nlziet_password_set" label="30093" type="action" action="RunScript(plugin.video.retrospect, 0, ?channel=channel.nlziet.nlziet&amp;action=encryptsetting&amp;settingid=channel_89E7B29E-6356-4276-A435-5FA915377C2C_nlziet_password&amp;settingname=NLZIET&amp;tabfocus=102)" option="close" visible="eq(-7,NLZIET)" />
8484
<setting id="channel_89E7B29E-6356-4276-A435-5FA915377C2C_nlziet_log_off" label="30611" type="action" action="RunScript(plugin.video.retrospect, 0, ?channel=channel.nlziet.nlziet&amp;action=execute&amp;command=log_off)" option="close" visible="eq(-8,NLZIET)" />
8585
<setting id="channel_89E7B29E-6356-4276-A435-5FA915377C2C_nlziet_select_profile" label="30625" type="action" action="RunScript(plugin.video.retrospect, 0, ?channel=channel.nlziet.nlziet&amp;action=execute&amp;command=select_profile)" option="close" visible="eq(-9,NLZIET)" />
86-
<setting id="channel_89E7B29E-6356-4276-A435-5FA915377C2C_nlziet_live_start_offset" label="30628" type="number" min="-60" max="300" step="1" default="0" visible="eq(-10,NLZIET)" />
86+
<setting id="channel_89E7B29E-6356-4276-A435-5FA915377C2C_nlziet_live_start_offset" label="30628" type="slider" option="int" range="-60,10,300" default="0" visible="eq(-10,NLZIET)" />
8787
<!-- chn_nos2010.py -->
8888
<setting id="channel_ED8FDB9C-3870-11E2-B1C2-192A6288709B_username" type="text" label="30094" default="" visible="eq(-11,NPO Start)" />
8989
<setting id="channel_ED8FDB9C-3870-11E2-B1C2-192A6288709B_password_set" label="30093" type="action" action="RunScript(plugin.video.retrospect, 0, ?action=encryptsetting&amp;settingid=channel_ED8FDB9C-3870-11E2-B1C2-192A6288709B_password&amp;settingname=NPO.nl password&amp;tabfocus=102)" option="close" visible="eq(-12,NPO Start)" />

0 commit comments

Comments
 (0)