Skip to content

Commit 13282f1

Browse files
authored
Use fetchItem for MyPlexAccount.userState() (#982)
1 parent 71d11a4 commit 13282f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plexapi/myplex.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,7 @@ def userState(self, item):
860860
"""
861861
ratingKey = item.guid.rsplit('/', 1)[-1]
862862
data = self.query(f"{self.METADATA}/library/metadata/{ratingKey}/userState")
863-
# TODO: change to findItem after PR#931 is merged
864-
return self.findItems(data, cls=UserState)[0]
863+
return self.findItem(data, cls=UserState)
865864

866865
def searchDiscover(self, query, limit=30, libtype=None):
867866
""" Search for movies and TV shows in Discover.

0 commit comments

Comments
 (0)