Skip to content

Commit 52833b1

Browse files
committed
Fix indent and a typo
1 parent 5db89eb commit 52833b1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

plexapi/library.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def all(self, sort=None, **kwargs):
386386
sortStr = ''
387387
if sort is not None:
388388
sortStr = '?sort=' + sort
389-
389+
390390
key = '/library/sections/%s/all%s' % (self.key, sortStr)
391391
return self.fetchItems(key, **kwargs)
392392

@@ -713,7 +713,7 @@ class ShowSection(LibrarySection):
713713
'guid', 'duplicate', 'label', 'show.title', 'show.year', 'show.userRating',
714714
'show.viewCount', 'show.lastViewedAt', 'show.actor', 'show.addedAt', 'episode.title',
715715
'episode.originallyAvailableAt', 'episode.resolution', 'episode.subtitleLanguage',
716-
'episode.unwatched', 'episode.addedAt','episode.userRating', 'episode.viewCount',
716+
'episode.unwatched', 'episode.addedAt', 'episode.userRating', 'episode.viewCount',
717717
'episode.lastViewedAt')
718718
ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'originallyAvailableAt', 'titleSort',
719719
'rating', 'unwatched')
@@ -1007,19 +1007,19 @@ def __len__(self):
10071007
def delete(self):
10081008
part = '/library/metadata/%s' % self.ratingKey
10091009
return self._server.query(part, method=self._server._session.delete)
1010-
1010+
10111011
def modeUpdate(self, mode=None):
10121012
""" Update Collection Mode
10131013
10141014
Parameters:
1015-
mode: default (Library default)
1016-
hide (Hide Collection)
1017-
hideItems (Hide Items in this Collection)
1018-
showItems (Show this Collection and its Items)
1015+
mode: default (Library default)
1016+
hide (Hide Collection)
1017+
hideItems (Hide Items in this Collection)
1018+
showItems (Show this Collection and its Items)
10191019
Example:
10201020
1021-
colleciton = 'plexapi.library.Collections'
1022-
collection.updateMode(mode="hide")
1021+
collection = 'plexapi.library.Collections'
1022+
collection.updateMode(mode="hide")
10231023
"""
10241024
mode_dict = {'default': '-2',
10251025
'hide': '0',
@@ -1035,13 +1035,13 @@ def sortUpdate(self, sort=None):
10351035
""" Update Collection Sorting
10361036
10371037
Parameters:
1038-
sort: realease (Order Collection by realease dates)
1039-
alpha (Order Collection Alphabetically)
1038+
sort: realease (Order Collection by realease dates)
1039+
alpha (Order Collection Alphabetically)
10401040
10411041
Example:
10421042
1043-
colleciton = 'plexapi.library.Collections'
1044-
collection.updateSort(mode="alpha")
1043+
colleciton = 'plexapi.library.Collections'
1044+
collection.updateSort(mode="alpha")
10451045
"""
10461046
sort_dict = {'release': '0',
10471047
'alpha': '1'}

0 commit comments

Comments
 (0)