Merge pull request #668 from croneter/pr_sequence_item

Fix playlist sync: sequence item 0: expected string or unicode
This commit is contained in:
croneter 2019-02-02 13:39:47 +01:00 committed by GitHub
commit 1d17dd867c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,8 @@ def add_items(playlist, plex_ids):
'title': playlist.plex_name,
'smart': 0,
'uri': ('server://%s/com.plexapp.plugins.library/library/metadata/%s'
% (app.CONN.machine_identifier, ','.join(plex_ids)))
% (app.CONN.machine_identifier,
','.join(unicode(x) for x in plex_ids)))
}
xml = DU().downloadUrl(url='{server}/playlists/',
action_type='POST',