From 2ebe849b8ef5d13f4a28f48a3728cb9ab94611fd Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 30 Apr 2017 19:51:53 -0700 Subject: [PATCH] Allow temporary device token through api --- plexpy/api2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plexpy/api2.py b/plexpy/api2.py index 2c3be917..eb2a80b8 100644 --- a/plexpy/api2.py +++ b/plexpy/api2.py @@ -109,6 +109,7 @@ class API2: self._api_out_type = kwargs.pop('out_type', 'json') if ((self._api_apikey == plexpy.CONFIG.API_KEY or + self._api_apikey == mobile_app.TEMP_DEVICE_TOKEN or mobile_app.get_mobile_device_by_token(self._api_apikey)) and plexpy.CONFIG.API_ENABLED and self._api_cmd in self._api_valid_methods): self._api_authenticated = True