Add remove method for Conversion items.

This commit is contained in:
blacktwin 2020-01-29 09:20:17 -05:00
parent ce6dec2b1d
commit ad3ce64703

View file

@ -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