diff --git a/plexapi/library.py b/plexapi/library.py index c3b00382..239d267c 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -713,7 +713,7 @@ class ShowSection(LibrarySection): 'guid', 'duplicate', 'label', 'show.title', 'show.year', 'show.userRating', 'show.viewCount', 'show.lastViewedAt', 'show.actor', 'show.addedAt', 'episode.title', 'episode.originallyAvailableAt', 'episode.resolution', 'episode.subtitleLanguage', - 'episode.unwatched', 'episode.addedAt','episode.userRating', 'episode.viewCount', + 'episode.unwatched', 'episode.addedAt', 'episode.userRating', 'episode.viewCount', 'episode.lastViewedAt') ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'originallyAvailableAt', 'titleSort', 'rating', 'unwatched') diff --git a/plexapi/server.py b/plexapi/server.py index ff4d1bbb..741249ce 100644 --- a/plexapi/server.py +++ b/plexapi/server.py @@ -334,7 +334,7 @@ class PlexServer(PlexObject): up the result listing. For example: datetime.now() - timedelta(days=7) """ results, subresults = [], '_init' - args = {'sort':'viewedAt:desc'} + args = {'sort': 'viewedAt:desc'} if mindate: args['viewedAt>'] = int(mindate.timestamp()) args['X-Plex-Container-Start'] = 0