mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Update plexapi=4.16.1
This commit is contained in:
parent
85e9237608
commit
078c293bd7
4 changed files with 7 additions and 6 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue