mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 12:58:26 +00:00
Allow int to pass aswell
Supports int, strings, list off ids.¨ This bugs like this happens when your watcking tv at the same time ¯\_(ツ)_/¯
This commit is contained in:
parent
201466a52f
commit
c466b096ef
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ class Playable(object):
|
|||
def merge(self, ratingKeys):
|
||||
"""Merge duplicate items."""
|
||||
if not isinstance(ratingKeys, list):
|
||||
ratingKeys = ratingKeys.split(",")
|
||||
ratingKeys = str(ratingKeys).split(",")
|
||||
|
||||
key = '%s/merge?ids=%s' % (self.key, ','.join(ratingKeys))
|
||||
return self._server.query(key, method=self._server._session.put)
|
||||
|
|
Loading…
Add table
Reference in a new issue