From acebf96d2f1132259cf4f7207835913e17c60621 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 27 Sep 2020 13:57:56 -0700 Subject: [PATCH] Skip blank custom fields --- plexpy/exporter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plexpy/exporter.py b/plexpy/exporter.py index 23b515a1..7c2582c2 100644 --- a/plexpy/exporter.py +++ b/plexpy/exporter.py @@ -1471,6 +1471,8 @@ class Export(object): for field in self.custom_fields.split(','): field = field.strip() + if not field: + continue media_type = self.media_type for key in self.CUSTOM_FIELD_KEYS: