From ad3ce64703bd386c04cdce16d32430a7c448c564 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Wed, 29 Jan 2020 09:20:17 -0500 Subject: [PATCH] Add remove method for Conversion items. --- plexapi/media.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plexapi/media.py b/plexapi/media.py index 297f0212..a7ca4802 100644 --- a/plexapi/media.py +++ b/plexapi/media.py @@ -434,6 +434,11 @@ class Conversion(PlexObject): self.viewOffset = data.attrib.get('viewOffset') self.year = data.attrib.get('year') + def remove(self): + """ Remove Conversion from queue """ + key = '/playlists/%s/items/%s/%s/disable' % (self.playlistID, self.generatorID, self.ratingKey) + self._server.query(key, method=self._server._session.put) + class MediaTag(PlexObject): """ Base class for media tags used for filtering and searching your library