Py2/3 compatibility fixes (#16)

This commit is contained in:
mediaminister 2020-04-01 09:00:06 +00:00 committed by GitHub
parent 2cf14a0b20
commit 3d7a05cf24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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