Update plexapi=4.16.1

This commit is contained in:
JonnyWong16 2025-01-09 10:45:29 -08:00
parent 85e9237608
commit 078c293bd7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 7 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import requests
from plexapi import CONFIG, X_PLEX_IDENTIFIER
from plexapi import CONFIG, X_PLEX_IDENTIFIER, TIMEOUT
from plexapi.client import PlexClient
from plexapi.exceptions import BadRequest
from plexapi.playqueue import PlayQueue
@ -46,7 +46,7 @@ class PlexSonosClient(PlexClient):
_session (obj): Requests session object used to access this client.
"""
def __init__(self, account, data):
def __init__(self, account, data, timeout=None):
self._data = data
self.deviceClass = data.attrib.get("deviceClass")
self.machineIdentifier = data.attrib.get("machineIdentifier")
@ -66,6 +66,7 @@ class PlexSonosClient(PlexClient):
self._last_call = 0
self._proxyThroughServer = False
self._showSecrets = CONFIG.get("log.show_secrets", "").lower() == "true"
self._timeout = timeout or TIMEOUT
def playMedia(self, media, offset=0, **params):