Skip to content

Commit

Permalink
[satfinder] Character encoding hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Dec 12, 2017
1 parent f9192e7 commit 02e640c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
Expand Up @@ -657,6 +657,8 @@ def getCurrentTsidOnid(self, from_retune = False):
for i in range(len(sdt_current_content)):
if not sdt_current_content[i]["service_name"]: # if service name is empty use SID
sdt_current_content[i]["service_name"] = "0x%x" % sdt_current_content[i]["service_id"]
else:
sdt_current_content[i]["service_name"] = sdt_current_content[i]["service_name"].decode("latin-1", errors="ignore").encode("utf8")

self.serviceList = sorted(sdt_current_content, key=lambda listItem: listItem["service_name"])
if self.serviceList:
Expand Down

0 comments on commit 02e640c

Please sign in to comment.