-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
monitorConcerning a player monitorConcerning a player monitor
Description
Probably not a bug, I'm just trying to get clarification on what is expected to happen, or maybe something I need to fix?
Every once in a while my plex token will change, and of course the trakt-scrobbler doesn't know this and the scrobbling of plays from plex doesn't work anymore. When this happens, I do trakts stop, fetch my new plex token and edit the plex_token.txt file, and then trakts start.
Is this the intended recovery path? Is there a way to auto-update the token? I'm not sure if the plex token expired, or if it changes because of something else.
Desktop (please complete the following information):
- OS and Version: Ubuntu 20.04.5
- Python Version: 3.8.10
- Player and Version: Plex Server 1.31.1.6733
To Reproduce
Steps to reproduce the behavior:
- Don't know. Wait until plex token changes.
- Observe scrobbling is broken and check log files.
Log file
Click to see log contents
2023-03-22 21:06:08,664 - DEBUG - plex - monitor - action=stop_previous
2023-03-22 21:06:08,664 - DEBUG - scrobbler - scrobbler - Scrobbling stop at 97.64% for Gentleman Jack
2023-03-22 21:06:08,910 - INFO - scrobbler - scrobbler - Scrobble stop successful for Gentleman Jack S01E06 at 97.64%
2023-03-23 04:29:13,450 - WARNING - plex - utils - Request failed
2023-03-23 04:29:13,450 - DEBUG - plex - utils - Request: get {'url': 'http://localhost:32400/status/sessions'}
2023-03-23 04:29:13,451 - DEBUG - plex - utils - Response: <Response [401]> <html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>
2023-03-23 04:29:13,451 - ERROR - plex - monitor - Error while getting data from plex: 401 Client Error: Unauthorized for url: http://localhost:32400/status/sessions
Metadata
Metadata
Assignees
Labels
monitorConcerning a player monitorConcerning a player monitor