From 8d832730f23d86462882b6b16f5c7ec175adfb72 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 16 Dec 2021 10:13:04 -0800 Subject: [PATCH] Update exporter docs collection/playlist note --- plexpy/exporter.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/plexpy/exporter.py b/plexpy/exporter.py index f091cfeb..1feb8a04 100644 --- a/plexpy/exporter.py +++ b/plexpy/exporter.py @@ -2509,7 +2509,6 @@ def build_export_docs(): child_table_rows.append(table_row.format(**child_row)) return child_table_rows - contents = [] sections = [] for media_type, (thumb, art) in export.MEDIA_TYPES.items(): @@ -2569,11 +2568,19 @@ def build_export_docs(): section = section_head.format(anchor=media_type, section=section_title) + '\n\n'.join(details) if media_type == 'collection': - section += '\n\n* **Note:** Collection `items` can be [Movies](#movie) or [Shows](#show) ' \ - 'depending on the collection.' + section += ( + '\n\n* **Note:** Collection `items` can be ' + '[Movies](#movie), ' + '[Shows](#show), [Seasons](#season), [Episodes](#episode), ' + '[Artists](#artist), [Albums](#album), or [Tracks](#track) ' + 'depending on the type of collection.' + ) elif media_type == 'playlist': - section += '\n\n* **Note:** Playlist `items` can be [Movies](#movie), [Episodes](#episode), ' \ - '[Tracks](#track), or [Photos](#photo) depending on the playlist.' + section += ( + '\n\n* **Note:** Playlist `items` can be ' + '[Movies](#movie), [Episodes](#episode), [Tracks](#track), or [Photos](#photo) ' + 'depending on the type of playlist.' + ) sections.append(section)