Merge pull request #1698 from croneter/py3-fix-companion

Fix playback startup and AttributeError: 'bool' object has no attribute 'get'
This commit is contained in:
croneter 2021-11-07 11:53:31 +01:00 committed by GitHub
commit 9a63e5605b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ def proxy_headers():
def proxy_params(): def proxy_params():
params = { params = {
'deviceClass': 'pc', 'deviceClass': 'pc',
'protocolCapabilities': 'timeline,playback,navigation,mirror,playqueues', 'protocolCapabilities': 'timeline,playback,navigation,playqueues',
'protocolVersion': 3 'protocolVersion': 3
} }
if app.ACCOUNT.pms_token: if app.ACCOUNT.pms_token:

View file

@ -445,9 +445,9 @@ CONTENT_FROM_PLEX_TYPE = {
# Plex profile for transcoding and direct streaming # Plex profile for transcoding and direct streaming
# Uses the empty Generic.xml at Plex Media Server/Resources/Profiles for any # Uses the empty Generic.xml at Plex Media Server/Resources/Profiles for any
# Playback decisions # Playback decisions
PLATFORM = 'Kodi' PLATFORM = 'Generic'
# Version seems to be irrelevant for the generic platform # Version seems to be irrelevant for the generic platform
PLATFORM_VERSION = KODILONGVERSION PLATFORM_VERSION = '1.0.0'
# Overrides (replace=true) any existing entries in generic.xml # Overrides (replace=true) any existing entries in generic.xml
STREAMING_HEADERS = { STREAMING_HEADERS = {
'X-Plex-Client-Profile-Extra': 'X-Plex-Client-Profile-Extra':