fixup after ratingkey was changed to int.

This commit is contained in:
Hellowlol 2017-01-17 08:48:57 +01:00 committed by GitHub
parent 313fef4de8
commit 114cb1dc89

View file

@ -62,7 +62,7 @@ class Playlist(PlexPartialObject, Playable):
raise BadRequest('Can not mix media types when building a playlist: %s and %s' % (self.playlistType, item.listType)) raise BadRequest('Can not mix media types when building a playlist: %s and %s' % (self.playlistType, item.listType))
ratingKeys.append(item.ratingKey) ratingKeys.append(item.ratingKey)
uuid = items[0].section().uuid uuid = items[0].section().uuid
ratingKeys = ','.join(ratingKeys) ratingKeys = ','.join(str(ratingKeys))
path = '%s/items%s' % (self.key, utils.joinArgs({ path = '%s/items%s' % (self.key, utils.joinArgs({
'uri': 'library://%s/directory//library/metadata/%s' % (uuid, ratingKeys), 'uri': 'library://%s/directory//library/metadata/%s' % (uuid, ratingKeys),
})) }))