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)
1194
-
ifsel_epg_intcron=="":
1195
-
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
1196
1241
param_update='"cron":"'+sel_epg_intcron+'"'
1197
1242
ifsel_epg==8:
1198
1243
sel_epg_otainit=dialog.select('Enable or disable initial EPG grab at startup', list=enabledisable)
1199
1244
ifsel_epg_otainit>=0:
1200
1245
epg_otainit=truefalse[sel_epg_otainit]
1201
1246
param_update='"ota_initial":'+epg_otainit
1202
1247
ifsel_epg==9:
1203
-
sel_epg_otacron=dialog.input('Edit the cron multiline for over-the-air grabbers', defaultt=epg_otacron,type=xbmcgui.INPUT_ALPHANUM)
1204
-
ifsel_epg_otacron=="":
1205
-
sel_epg_otacron=epg_otacron
1206
-
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+'"'
1207
1258
ifsel_epg==10:
1208
1259
sel_epg_otatime=dialog.input('OTA EPG scan timeout in seconds (30-7200)', defaultt=str(epg_otatime),type=xbmcgui.INPUT_NUMERIC)
1209
1260
ifsel_epg_otatime=="":
@@ -1751,8 +1802,6 @@ def wizard_start():
1751
1802
foradapter_tinadapter_get:
1752
1803
adapter_list.append(adapter_t['text'])
1753
1804
sel_adapter=dialog.select('Select which adapter you would like to setup first', list=adapter_list)
1754
-
ifsel_adapter<0:
1755
-
return
1756
1805
ifsel_adapter>=0:
1757
1806
adapter_uuid_sel=adapter_uuid[sel_adapter]
1758
1807
adapter_text_sel=adapter_list[sel_adapter]
@@ -1902,8 +1951,6 @@ def adapters():
1902
1951
adapters_full=zip(adapter_text, adapter_enabled)
1903
1952
adapters_list= ["%s %s"%xforxinadapters_full]
1904
1953
sel_adapter=dialog.select('Select which adapter you would like to configure', list=adapters_list)
1905
-
ifsel_adapter<0:
1906
-
return
1907
1954
ifsel_adapter>=0:
1908
1955
adapter_uuid_sel=adapter_uuid[sel_adapter]
1909
1956
adapt_param_load(adapter_uuid_sel)
@@ -1919,8 +1966,6 @@ def networks():
1919
1966
fornet_uinnetworks['entries']:
1920
1967
net_uuid.append(net_u['uuid'])
1921
1968
sel_network=dialog.select('Select a network to configure', list=net_name)
1922
-
ifsel_network<0:
1923
-
return
1924
1969
ifsel_network==0:
1925
1970
net_uuid_sel=network_new()
1926
1971
ifnet_uuid_sel=="":
@@ -1942,8 +1987,6 @@ def muxes():
1942
1987
fornet_uinnetworks['entries']:
1943
1988
net_uuid.append(net_u['uuid'])
1944
1989
sel_network=dialog.select('Select a network to see list of muxes', list=net_name)
0 commit comments