Skip to content

Commit

Permalink
updates: delete custom channel 3
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
  • Loading branch information
antonlacon committed Nov 9, 2023
1 parent 05ec4fe commit f494e1b
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions resources/lib/modules/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,6 @@ class updates(modules.Module):
'InfoText': 762,
'order': 6,
},
'CustomChannel3': {
'name': 32019,
'value': '',
'action': 'set_custom_channel',
'type': 'text',
'parent': {
'entry': 'ShowCustomChannels',
'value': ['1'],
},
'InfoText': 762,
'order': 7,
},
'Channel': {
'name': 32015,
'value': '',
Expand All @@ -123,7 +111,7 @@ class updates(modules.Module):
},
'values': [],
'InfoText': 760,
'order': 8,
'order': 7,
},
'Build': {
'name': 32020,
Expand All @@ -135,7 +123,7 @@ class updates(modules.Module):
'value': ['0'],
},
'InfoText': 770,
'order': 9,
'order': 8,
},
},
},
Expand Down Expand Up @@ -303,7 +291,7 @@ def load_values(self):
if value:
self.struct['update']['settings']['ShowCustomChannels']['value'] = value

for i in range(1,3):
for i in range(1,2):
value = oe.read_setting('updates', f'CustomChannel{i}')
if value:
self.struct['update']['settings'][f'CustomChannel{i}']['value'] = value
Expand Down Expand Up @@ -460,7 +448,7 @@ def build_json(self, notify_error=False):
update_json = self.get_json()
if self.struct['update']['settings']['ShowCustomChannels']['value'] == '1':
custom_urls = []
for i in 1,2,3:
for i in range(1,2):
custom_urls.append(self.struct['update']['settings'][f'CustomChannel{str(i)}']['value'])
for custom_url in custom_urls:
if custom_url:
Expand Down

0 comments on commit f494e1b

Please sign in to comment.