From 4f96838b3d4f3b7e56fee3a00e8266c4b41a3085 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 28 Sep 2020 13:51:25 -0400 Subject: [PATCH] update sort field in library.ShowSection.recentlyAdded method --- plexapi/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexapi/library.py b/plexapi/library.py index 7b9bd95e..5376e643 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -879,7 +879,7 @@ class ShowSection(LibrarySection): Parameters: maxresults (int): Max number of items to return (default 50). """ - return self.search(sort='addedAt:desc', libtype=libtype, maxresults=maxresults) + return self.search(sort='episode.addedAt:desc', libtype=libtype, maxresults=maxresults) def collection(self, **kwargs): """ Returns a list of collections from this library section. """