Skip to content

Commit 6302402

Browse files
committed
create Conversion object
1 parent 9c50225 commit 6302402

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

plexapi/media.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,19 @@ def _loadData(self, data):
345345
self.width = cast(int, data.attrib.get('width'))
346346

347347

348+
@utils.registerPlexObject
349+
class Conversion(PlexObject):
350+
""" Represents a current session. """
351+
TAG = 'Conversion'
352+
353+
def _loadData(self, data):
354+
self.id = data.attrib.get('id')
355+
self.composite = data.attrib.get('composite')
356+
self.title = data.attrib.get('title')
357+
self.type = data.attrib.get('type')
358+
self.target = data.attrib.get('target')
359+
360+
348361
class MediaTag(PlexObject):
349362
""" Base class for media tags used for filtering and searching your library
350363
items or navigating the metadata of media items in your library. Tags are

0 commit comments

Comments
 (0)