Skip to content

Commit

Permalink
plex: Don't use safe_request
Browse files Browse the repository at this point in the history
Lets us reuse the log dedup filter when server is unreachable.
If we need to really log errors in more detail, we can do that later.

Fixes #314
  • Loading branch information
iamkroot committed Sep 13, 2024
1 parent 193c91f commit ae85d5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trakt_scrobbler/player_monitors/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def __init__(self, scrobble_queue):
self.media_info_cache = {}

def get_data(self, url):
resp = safe_request("get", {"url": url}, self.sess)
if resp is None:
return
resp = self.sess.get(url)
# TODO: If we get a 401, clear token and restart plex auth flow
try:
resp.raise_for_status()
Expand Down

0 comments on commit ae85d5a

Please sign in to comment.