From 9c2599acbe3359c42d66da720b98c029636c73f9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 3 Aug 2020 15:58:15 -0700 Subject: [PATCH] No export section_id for playlists --- plexpy/exporter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plexpy/exporter.py b/plexpy/exporter.py index 78d5e6dd..8445c12b 100644 --- a/plexpy/exporter.py +++ b/plexpy/exporter.py @@ -878,7 +878,9 @@ def export(section_id=None, rating_key=None, file_format='json'): item = plex.get_item(helpers.cast_to_int(rating_key)) media_type = item.type - section_id = item.librarySectionID + + if media_type != 'playlist': + section_id = item.librarySectionID if media_type in ('season', 'episode', 'album', 'track'): item_title = item._defaultSyncTitle()