Skip to content

Commit 7227576

Browse files
committed
keep metadata baseurl for scrobble and userState
1 parent bef199e commit 7227576

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plexapi/myplex.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ def userState(self, item):
10101010
item (:class:`~plexapi.video.Movie` or :class:`~plexapi.video.Show`): Item to return the user state.
10111011
"""
10121012
ratingKey = item.guid.rsplit('/', 1)[-1]
1013-
data = self.query(f"{self.DISCOVER}/library/metadata/{ratingKey}/userState")
1013+
data = self.query(f"{self.METADATA}/library/metadata/{ratingKey}/userState")
10141014
return self.findItem(data, cls=UserState)
10151015

10161016
def isPlayed(self, item):
@@ -1034,7 +1034,7 @@ def markPlayed(self, item):
10341034
:class:`~plexapi.video.Episode`): Object from searchDiscover().
10351035
Can be also result from Plex Movie or Plex TV Series agent.
10361036
"""
1037-
key = f'{self.DISCOVER}/actions/scrobble'
1037+
key = f'{self.METADATA}/actions/scrobble'
10381038
ratingKey = item.guid.rsplit('/', 1)[-1]
10391039
params = {'key': ratingKey, 'identifier': 'com.plexapp.plugins.library'}
10401040
self.query(key, params=params)
@@ -1049,7 +1049,7 @@ def markUnplayed(self, item):
10491049
:class:`~plexapi.video.Episode`): Object from searchDiscover().
10501050
Can be also result from Plex Movie or Plex TV Series agent.
10511051
"""
1052-
key = f'{self.DISCOVER}/actions/unscrobble'
1052+
key = f'{self.METADATA}/actions/unscrobble'
10531053
ratingKey = item.guid.rsplit('/', 1)[-1]
10541054
params = {'key': ratingKey, 'identifier': 'com.plexapp.plugins.library'}
10551055
self.query(key, params=params)

0 commit comments

Comments
 (0)