Fix playlist sync: sequence item 0: expected string or unicode

This commit is contained in:
croneter 2019-02-02 10:53:10 +01:00
parent b3402fc3d5
commit d09d2e6aaf

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',