Skip to content

Commit c466b09

Browse files
committed
Allow int to pass aswell
Supports int, strings, list off ids.¨ This bugs like this happens when your watcking tv at the same time ¯\_(ツ)_/¯
1 parent 201466a commit c466b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def split(self):
654654
def merge(self, ratingKeys):
655655
"""Merge duplicate items."""
656656
if not isinstance(ratingKeys, list):
657-
ratingKeys = ratingKeys.split(",")
657+
ratingKeys = str(ratingKeys).split(",")
658658

659659
key = '%s/merge?ids=%s' % (self.key, ','.join(ratingKeys))
660660
return self._server.query(key, method=self._server._session.put)

0 commit comments

Comments
 (0)