You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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.
sel_epg_intcron=dialog.input('Edit the cron multiline for internal grabbers', defaultt=epg_intcron,type=xbmcgui.INPUT_ALPHANUM)
1135
-
ifsel_epg_intcron=="":
1136
-
sel_epg_intcron=epg_intcron
1232
+
sel_epg_intcron_type=dialog.yesno('Edit the cron for internal grabbers', 'If you are familiar with cron settings you can manually enter the cron.', '', 'Otherwise use the wizard to select the grabber run times.', 'Wizard', 'Manual')
1233
+
ifsel_epg_intcron_type:
1234
+
sel_epg_intcron=dialog.input('Edit the cron multiline for internal grabbers', defaultt=epg_intcron,type=xbmcgui.INPUT_ALPHANUM)
1235
+
ifsel_epg_intcron=="":
1236
+
sel_epg_intcron=epg_intcron
1237
+
else:
1238
+
sel_epg_intcron=cron_edit(epg_intcron)
1239
+
ifsel_epg_intcron=="":
1240
+
sel_epg_intcron=epg_intcron
1137
1241
param_update='"cron":"'+sel_epg_intcron+'"'
1138
1242
ifsel_epg==8:
1139
1243
sel_epg_otainit=dialog.select('Enable or disable initial EPG grab at startup', list=enabledisable)
1140
1244
ifsel_epg_otainit>=0:
1141
1245
epg_otainit=truefalse[sel_epg_otainit]
1142
1246
param_update='"ota_initial":'+epg_otainit
1143
1247
ifsel_epg==9:
1144
-
sel_epg_otacron=dialog.input('Edit the cron multiline for over-the-air grabbers', defaultt=epg_otacron,type=xbmcgui.INPUT_ALPHANUM)
1145
-
ifsel_epg_otacron=="":
1146
-
sel_epg_otacron=epg_otacron
1147
-
param_update='"cron":"'+sel_epg_otacron+'"'
1248
+
sel_epg_otacron_type=dialog.yesno('Edit the cron for OTA grabbers', 'If you are familiar with cron settings you can manually enter the cron.', '', 'Otherwise use the wizard to select the grabber run times.', 'Wizard', 'Manual')
1249
+
ifsel_epg_otacron_type:
1250
+
sel_epg_otacron=dialog.input('Edit the cron multiline for over-the-air grabbers', defaultt=epg_otacron,type=xbmcgui.INPUT_ALPHANUM)
1251
+
ifsel_epg_otacron=="":
1252
+
sel_epg_otacron=epg_otacron
1253
+
else:
1254
+
sel_epg_otacron=cron_edit(epg_otacron)
1255
+
ifsel_epg_otacron=="":
1256
+
sel_epg_otacron=epg_otacron
1257
+
param_update='"ota_cron":"'+sel_epg_otacron+'"'
1148
1258
ifsel_epg==10:
1149
1259
sel_epg_otatime=dialog.input('OTA EPG scan timeout in seconds (30-7200)', defaultt=str(epg_otatime),type=xbmcgui.INPUT_NUMERIC)
1150
1260
ifsel_epg_otatime=="":
@@ -1692,8 +1802,6 @@ def wizard_start():
1692
1802
foradapter_tinadapter_get:
1693
1803
adapter_list.append(adapter_t['text'])
1694
1804
sel_adapter=dialog.select('Select which adapter you would like to setup first', list=adapter_list)
1695
-
ifsel_adapter<0:
1696
-
return
1697
1805
ifsel_adapter>=0:
1698
1806
adapter_uuid_sel=adapter_uuid[sel_adapter]
1699
1807
adapter_text_sel=adapter_list[sel_adapter]
@@ -1843,8 +1951,6 @@ def adapters():
1843
1951
adapters_full=zip(adapter_text, adapter_enabled)
1844
1952
adapters_list= ["%s %s"%xforxinadapters_full]
1845
1953
sel_adapter=dialog.select('Select which adapter you would like to configure', list=adapters_list)
1846
-
ifsel_adapter<0:
1847
-
return
1848
1954
ifsel_adapter>=0:
1849
1955
adapter_uuid_sel=adapter_uuid[sel_adapter]
1850
1956
adapt_param_load(adapter_uuid_sel)
@@ -1860,8 +1966,6 @@ def networks():
1860
1966
fornet_uinnetworks['entries']:
1861
1967
net_uuid.append(net_u['uuid'])
1862
1968
sel_network=dialog.select('Select a network to configure', list=net_name)
1863
-
ifsel_network<0:
1864
-
return
1865
1969
ifsel_network==0:
1866
1970
net_uuid_sel=network_new()
1867
1971
ifnet_uuid_sel=="":
@@ -1883,8 +1987,6 @@ def muxes():
1883
1987
fornet_uinnetworks['entries']:
1884
1988
net_uuid.append(net_u['uuid'])
1885
1989
sel_network=dialog.select('Select a network to see list of muxes', list=net_name)
0 commit comments