Skip to content

Commit 8c62ef7

Browse files
author
Littlesat
committed
When streamrelay whitelist is disabled do not show options
1 parent d119a2c commit 8c62ef7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/python/Screens/ChannelSelection.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,11 @@ def __init__(self, session, csel):
253253
append_when_current_valid(current, menu, (_("Uncover dashed flickering line for this service"), self.toggleVBI), level=1)
254254
else:
255255
append_when_current_valid(current, menu, (_("Cover dashed flickering line for this service"), self.toggleVBI), level=1)
256-
if Screens.InfoBar.InfoBar.instance.checkStreamrelay(current):
257-
append_when_current_valid(current, menu, (_("Play service without streamrelay"), self.toggleStreamrelay), level=1)
258-
else:
259-
append_when_current_valid(current, menu, (_("Play service with streamrelay"), self.toggleStreamrelay), level=1)
256+
if config.softcsa.useStreamRelayWhitelist.value:
257+
if Screens.InfoBar.InfoBar.instance.checkStreamrelay(current):
258+
append_when_current_valid(current, menu, (_("Play service without streamrelay"), self.toggleStreamrelay), level=1)
259+
else:
260+
append_when_current_valid(current, menu, (_("Play service with streamrelay"), self.toggleStreamrelay), level=1)
260261
if eDVBDB.getInstance().getCachedPid(eServiceReference(current.toString()), 9) >> 16 not in (-1, eDVBDB.getInstance().getCachedPid(eServiceReference(current.toString()), 2)):
261262
#Only show when a DVB subtitle is cached on this service
262263
if eDVBDB.getInstance().getFlag(eServiceReference(current.toString())) & FLAG_CENTER_DVB_SUBS:

0 commit comments

Comments
 (0)