Skip to content

Commit

Permalink
[ChannelSelection] addBouquet, tweak filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Jun 19, 2024
1 parent 1fae889 commit 4810f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Screens/ChannelSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,8 @@ def addBouquet(self, bName, services):
serviceHandler = eServiceCenter.getInstance()
mutableBouquetList = serviceHandler.list(self.bouquet_root).startEdit()
if mutableBouquetList:
name = sanitizeFilename(bName.replace(" ", "_"))
bName += ' ' + (_("(TV)") if self.mode == MODE_TV else _("(Radio)"))
name = sanitizeFilename(bName)
while os_path.isfile((self.mode == MODE_TV and '/etc/enigma2/userbouquet.%s.tv' or '/etc/enigma2/userbouquet.%s.radio') % name):
name = name.rsplit('_', 1)
name = ('_').join((name[0], len(name) == 2 and name[1].isdigit() and str(int(name[1]) + 1) or '1'))
Expand Down

0 comments on commit 4810f46

Please sign in to comment.