From 962777284ad7aa66a00af6cb974c895e71774695 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 12 Oct 2020 21:32:16 -0700 Subject: [PATCH] Add collectionSort value for custom sort --- plexpy/libraries.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plexpy/libraries.py b/plexpy/libraries.py index e459e19f..9422673c 100644 --- a/plexpy/libraries.py +++ b/plexpy/libraries.py @@ -169,8 +169,8 @@ def get_collections(section_id=None): 'addedAt': helpers.datetime_to_iso(collection.addedAt), 'art': collection.art, 'childCount': collection.childCount, - 'collectionMode': helpers.cast_to_int(collection_mode), - 'collectionSort': helpers.cast_to_int(collection_sort), + 'collectionMode': collection_mode, + 'collectionSort': collection_sort, 'contentRating': collection.contentRating, 'guid': collection.guid, 'librarySectionID': collection.librarySectionID, @@ -216,7 +216,8 @@ def get_collections_list(section_id=None, **kwargs): }, 'collectionSort': { 0: 'Release date', - 1: 'Alphabetical' + 1: 'Alphabetical', + 2: 'Custom' } }