From 4ec8ef3ab3ee7256483c0b6d8e698d2ace448c4d Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 15 Aug 2021 15:17:20 -0700 Subject: [PATCH] Fix exporting collections and playlists Fixes #1484 --- plexpy/exporter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plexpy/exporter.py b/plexpy/exporter.py index 674296a5..9f5584c4 100644 --- a/plexpy/exporter.py +++ b/plexpy/exporter.py @@ -1815,7 +1815,11 @@ class Export(object): # Only playlists export allowed for users items = self.obj.playlists() else: - method = getattr(self.obj, self.export_type) + if self.export_type != 'all': + export_method = self.export_type + 's' + else: + export_method = self.export_type + method = getattr(self.obj, export_method) items = method() self.total_items = len(items)