Skip to content

Commit

Permalink
Fix B64 decode error at playlist creation
Browse files Browse the repository at this point in the history
  • Loading branch information
markojaadam authored Dec 3, 2022
1 parent a72c9f5 commit 9c4da08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ def playAudioPlaylist(self, playlist, startpos=-1, fanart=None):
self.play(plist, startpos=startpos)

def createTrackListItem(self, track, fanart=None, index=0):
data = base64.urlsafe_b64encode(track.serialize())
data = base64.urlsafe_b64encode(track.serialize().encode("utf8")).decode("utf8")
url = 'plugin://script.plex/play?{0}'.format(data)
li = xbmcgui.ListItem(track.title, path=url)
li.setInfo('music', {
Expand Down

0 comments on commit 9c4da08

Please sign in to comment.