Skip to content

Commit

Permalink
Identify as PlexTraktSync for X-Plex-Platform header
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 5, 2021
1 parent f5da78d commit bed968c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plex_trakt_sync/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bed968c

Please sign in to comment.