|
a/src/mediaserver/cdplugins/spotify/spotipy/client.py |
|
b/src/mediaserver/cdplugins/spotify/spotipy/client.py |
|
... |
|
... |
56 |
def __init__(self, auth=None, requests_session=True,
|
56 |
def __init__(self, auth=None, requests_session=True,
|
57 |
client_credentials_manager=None, proxies=None, requests_timeout=None):
|
57 |
client_credentials_manager=None, proxies=None, requests_timeout=None):
|
58 |
"""
|
58 |
"""
|
59 |
Create a Spotify API object.
|
59 |
Create a Spotify API object.
|
60 |
|
60 |
|
61 |
:param auth: A SpotifyOAuth object (optional)
|
61 |
:param auth: A SpotifyOAuth object (optional). NOTE: DIFFERENCE from the
|
|
|
62 |
official version: done to allow further active management of the
|
|
|
63 |
auth token later on (refreshing).
|
62 |
:param requests_session:
|
64 |
:param requests_session:
|
63 |
A Requests session object or a truthy value to create one.
|
65 |
A Requests session object or a truthy value to create one.
|
64 |
A falsy value disables sessions.
|
66 |
A falsy value disables sessions.
|
65 |
It should generally be a good idea to keep sessions enabled
|
67 |
It should generally be a good idea to keep sessions enabled
|
66 |
for performance reasons (connection pooling).
|
68 |
for performance reasons (connection pooling).
|