Py2/3 compatibility fixes (#16)
This commit is contained in:
parent
2cf14a0b20
commit
3d7a05cf24
@ -77,7 +77,7 @@ class Catalog:
|
||||
|
||||
# Go directly to the season when we have only one season
|
||||
if len(program.seasons) == 1:
|
||||
self.show_program_season(channel, program_id, program.seasons.values()[0].uuid)
|
||||
self.show_program_season(channel, program_id, list(program.seasons.values())[0].uuid)
|
||||
return
|
||||
|
||||
studio = CHANNELS.get(program.channel, {}).get('studio_icon')
|
||||
|
@ -80,7 +80,7 @@ class AuthApi:
|
||||
refresh_token=self._refresh_token,
|
||||
expiry=self._expiry,
|
||||
))
|
||||
fdesc.write(data.encode('utf8'))
|
||||
fdesc.write(kodiutils.from_unicode(data))
|
||||
|
||||
return self._id_token
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user