From 133a7896c893c8ad7a32cd149ed61eabdd8f80db Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 7 Mar 2021 12:23:51 -0800 Subject: [PATCH] Add originalTitle and bannerFile to show export fields --- plexpy/exporter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plexpy/exporter.py b/plexpy/exporter.py index 3fa90813..6af59534 100644 --- a/plexpy/exporter.py +++ b/plexpy/exporter.py @@ -392,6 +392,7 @@ class Export(object): 'artBlurHash': None, 'artFile': lambda o: self.get_image(o, 'art'), 'banner': None, + 'bannerFile': lambda o: self.get_image(o, 'banner'), 'childCount': None, 'collections': { 'id': None, @@ -422,6 +423,7 @@ class Export(object): 'librarySectionTitle': None, 'locations': None, 'originallyAvailableAt': partial(helpers.datetime_to_iso, to_date=True), + 'originalTitle': None, 'rating': None, 'ratingKey': None, 'roles': { @@ -1201,7 +1203,7 @@ class Export(object): _media_type = 'show' _metadata_levels = { 1: [ - 'ratingKey', 'title', 'titleSort', 'originallyAvailableAt', 'year', 'addedAt', + 'ratingKey', 'title', 'titleSort', 'originallyAvailableAt', 'originalTitle', 'year', 'addedAt', 'rating', 'userRating', 'contentRating', 'studio', 'summary', 'guid', 'duration', 'durationHuman', 'type', 'childCount', 'seasons' @@ -2079,6 +2081,8 @@ class Export(object): image_url = item.thumbUrl elif image == 'art': image_url = item.artUrl + elif image == 'banner': + image_url = item.bannerUrl if not image_url: return