update sort field in library.ShowSection.recentlyAdded method

This commit is contained in:
blacktwin 2020-09-28 13:51:25 -04:00
parent d5f9004e7b
commit 4f96838b3d

View file

@ -879,7 +879,7 @@ class ShowSection(LibrarySection):
Parameters: Parameters:
maxresults (int): Max number of items to return (default 50). 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): def collection(self, **kwargs):
""" Returns a list of collections from this library section. """ """ Returns a list of collections from this library section. """