mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix app parameter in api
This commit is contained in:
parent
53d0bef260
commit
5efe2be7b2
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,9 @@ class API2:
|
|||
self._api_profileme = kwargs.pop('profileme', None)
|
||||
# Allow override for the api.
|
||||
self._api_out_type = kwargs.pop('out_type', 'json')
|
||||
self._api_app = True if kwargs.pop('app') == 'true' else False
|
||||
|
||||
if 'app' in kwargs and kwargs.pop('app') == 'true':
|
||||
self._api_app = True
|
||||
|
||||
if plexpy.CONFIG.API_ENABLED and not self._api_msg:
|
||||
if self._api_apikey == plexpy.CONFIG.API_KEY or (self._api_app and self._api_apikey == mobile_app.TEMP_DEVICE_TOKEN):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue