Skip to content

Commit

Permalink
ver 1.22 - fix python3(str bytes)
Browse files Browse the repository at this point in the history
- thanks @Ims
  • Loading branch information
Dima73 committed Nov 21, 2022
1 parent 7063151 commit 295d7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NumberZapExt.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
except:
getPiconsName = False

plugin_version = "1.21"
plugin_version = "1.22"

isgetChannelNum = hasattr(eServiceReference, 'getChannelNum')

Expand All @@ -43,7 +43,7 @@ def GetWithAlternative(service):
return service


service_types_tv = '1:7:1:0:0:0:0:0:0:0:(type == 1) || (type == 17) || (type == 22) || (type == 25) || (type == 31) || (type == 134) || (type == 195)'
service_types_tv = '1:7:1:0:0:0:0:0:0:0:(type == 1) || (type == 17) || (type == 22) || (type == 25) || (type == 31) || (type == 32) || (type == 134) || (type == 195)'
service_types_radio = '1:7:2:0:0:0:0:0:0:0:(type == 2) || (type == 10)'


Expand All @@ -59,7 +59,7 @@ def getActions(xmlfile, hotkeys={}):
id = item.get('id')
if id:
result[id] = item.attrib.copy()
result[id]['title'] = (result[id].get('title', '') or id.replace('_', ' ').title()).encode('UTF-8')
result[id]['title'] = result[id].get('title', '') or id.replace('_', ' ').title()
result[id]['hotkey'] = int(result[id].get('hotkey', 0)) or hotkeys.get(id, 0)
if result[id].get('type', '') in ('screen', 'code'):
result[id]['args'] = item.text or ''
Expand Down

0 comments on commit 295d7ab

Please sign in to comment.