Skip to content

Commit a33a3cb

Browse files
committed
Fix encoding error when reading YouTube channels
Closes https://github.com/goggle/plugin.video.rtsplaytv/issues/6
1 parent d56366b commit a33a3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/srgssr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ def _read_youtube_channels(self, fname):
13431343
fname -- the path to the file to be read
13441344
"""
13451345
data_file = os.path.join(xbmc.translatePath(self.data_uri), fname)
1346-
with open(data_file, 'r') as f:
1346+
with open(data_file, 'r', encoding='utf-8') as f:
13471347
ch_content = json.load(f)
13481348
cids = [elem['channel'] for elem in ch_content.get('channels', [])]
13491349
return cids

0 commit comments

Comments
 (0)