mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Allow temporary device token through api
This commit is contained in:
parent
84bfe99017
commit
2ebe849b8e
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ class API2:
|
||||||
self._api_out_type = kwargs.pop('out_type', 'json')
|
self._api_out_type = kwargs.pop('out_type', 'json')
|
||||||
|
|
||||||
if ((self._api_apikey == plexpy.CONFIG.API_KEY or
|
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
|
mobile_app.get_mobile_device_by_token(self._api_apikey)) and
|
||||||
plexpy.CONFIG.API_ENABLED and self._api_cmd in self._api_valid_methods):
|
plexpy.CONFIG.API_ENABLED and self._api_cmd in self._api_valid_methods):
|
||||||
self._api_authenticated = True
|
self._api_authenticated = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue