From bed968cd8fe8e77cf2b5c150eac0cce700117a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 4 Apr 2021 23:51:28 +0300 Subject: [PATCH] Identify as PlexTraktSync for X-Plex-Platform header https://github.com/pkkid/python-plexapi/issues/706 --- plex_trakt_sync/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plex_trakt_sync/main.py b/plex_trakt_sync/main.py index b94b06d14c..06b4ccbe6a 100644 --- a/plex_trakt_sync/main.py +++ b/plex_trakt_sync/main.py @@ -336,6 +336,10 @@ def get_plex_server(): if plex_token == '-': plex_token = "" server = None + + plexapi.X_PLEX_PLATFORM = 'PlexTraktSync' + plexapi.BASE_HEADERS['X-Plex-Platform'] = plexapi.X_PLEX_PLATFORM + # if connection fails, it will try : # 1. url expected by new ssl certificate # 2. url without ssl