From 27438f7915cca5fb47d2157e9aecd799c6ce84aa Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Thu, 16 Jul 2020 13:37:53 -0700 Subject: [PATCH] Don't allow apikey when using an app --- plexpy/api2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/api2.py b/plexpy/api2.py index 34c5e4b1..cf022c8c 100644 --- a/plexpy/api2.py +++ b/plexpy/api2.py @@ -136,7 +136,7 @@ class API2(object): self._api_app = True if plexpy.CONFIG.API_ENABLED and not self._api_msg or self._api_cmd in ('get_apikey', 'docs', 'docs_md'): - if self._api_apikey == plexpy.CONFIG.API_KEY: + if not self._api_app and self._api_apikey == plexpy.CONFIG.API_KEY: self._api_authenticated = True elif self._api_app and self._api_apikey == mobile_app.get_temp_device_token() and \