We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56366b commit a33a3cbCopy full SHA for a33a3cb
lib/srgssr.py
@@ -1343,7 +1343,7 @@ def _read_youtube_channels(self, fname):
1343
fname -- the path to the file to be read
1344
"""
1345
data_file = os.path.join(xbmc.translatePath(self.data_uri), fname)
1346
- with open(data_file, 'r') as f:
+ with open(data_file, 'r', encoding='utf-8') as f:
1347
ch_content = json.load(f)
1348
cids = [elem['channel'] for elem in ch_content.get('channels', [])]
1349
return cids
0 commit comments