Skip to content

Commit c295636

Browse files
committed
new Conversion class
1 parent dc6c1f1 commit c295636

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

plexapi/media.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,45 @@ def _loadData(self, data):
359359
self.targetTagID = data.attrib.get('targetTagID')
360360

361361

362+
@utils.registerPlexObject
363+
class Conversion(PlexObject):
364+
""" Represents a Conversion item. """
365+
TAG = 'Conversion'
366+
367+
def _loadData(self, data):
368+
self.addedAt = data.attrib.get('addedAt')
369+
self.art = data.attrib.get('art')
370+
self.chapterSource = data.attrib.get('chapterSource')
371+
self.contentRating = data.attrib.get('contentRating')
372+
self.duration = data.attrib.get('duration')
373+
self.generatorID = data.attrib.get('generatorID')
374+
self.generatorType = data.attrib.get('generatorType')
375+
self.guid = data.attrib.get('guid')
376+
self.key = data.attrib.get('key')
377+
self.lastViewedAt = data.attrib.get('lastViewedAt')
378+
self.librarySectionID = data.attrib.get('librarySectionID')
379+
self.librarySectionKey = data.attrib.get('librarySectionKey')
380+
self.librarySectionTitle = data.attrib.get('librarySectionTitle')
381+
self.originallyAvailableAt = data.attrib.get('originallyAvailableAt')
382+
self.playQueueItemID = data.attrib.get('playQueueItemID')
383+
self.playlistID = data.attrib.get('playlistID')
384+
self.primaryExtraKey = data.attrib.get('primaryExtraKey')
385+
self.rating = data.attrib.get('rating')
386+
self.ratingKey = data.attrib.get('ratingKey')
387+
self.studio = data.attrib.get('studio')
388+
self.summary = data.attrib.get('summary')
389+
self.tagline = data.attrib.get('tagline')
390+
self.target = data.attrib.get('target')
391+
self.thumb = data.attrib.get('thumb')
392+
self.title = data.attrib.get('title')
393+
self.type = data.attrib.get('type')
394+
self.updatedAt = data.attrib.get('updatedAt')
395+
self.userID = data.attrib.get('userID')
396+
self.username = data.attrib.get('username')
397+
self.viewOffset = data.attrib.get('viewOffset')
398+
self.year = data.attrib.get('year')
399+
400+
362401
class MediaTag(PlexObject):
363402
""" Base class for media tags used for filtering and searching your library
364403
items or navigating the metadata of media items in your library. Tags are

0 commit comments

Comments
 (0)