From ecbe79b5b98b885570aff88f77377ea4fbc03b94 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 19 Oct 2020 09:23:50 -0700 Subject: [PATCH] Add intro markers to exporter --- plexpy/exporter.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plexpy/exporter.py b/plexpy/exporter.py index 20e65f10..866d488b 100644 --- a/plexpy/exporter.py +++ b/plexpy/exporter.py @@ -492,6 +492,7 @@ class Export(object): 'grandparentThumb': None, 'grandparentTitle': None, 'guid': None, + 'hasIntroMarker': None, 'index': None, 'key': None, 'lastViewedAt': helpers.datetime_to_iso, @@ -499,6 +500,11 @@ class Export(object): 'librarySectionKey': None, 'librarySectionTitle': None, 'locations': None, + 'markers': { + 'end': None, + 'start': None, + 'type': None + }, 'media': { 'aspectRatio': None, 'audioChannels': None, @@ -1179,11 +1185,12 @@ class Export(object): 'rating', 'userRating', 'contentRating', 'summary', 'guid', 'duration', 'durationHuman', 'type', 'index', 'parentTitle', 'parentRatingKey', 'parentGuid', 'parentIndex', - 'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid' + 'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid', 'hasIntroMarker' ], 2: [ 'directors.tag', 'writers.tag', - 'fields.name', 'fields.locked' + 'fields.name', 'fields.locked', + 'markers.type', 'markers.start', 'markers.end' ], 3: [ 'art', 'thumb', 'key', 'chapterSource',