[fansly] emit debug logging message when using a 'token' (#4401)

This commit is contained in:
Mike Fährmann
2025-09-07 08:41:49 +02:00
parent fbbf79a28f
commit 41a70490f1
2 changed files with 8 additions and 7 deletions

View File

@@ -179,17 +179,18 @@ class FanslyAPI():
def __init__(self, extractor):
self.extractor = extractor
token = extractor.config("token")
if not token:
self.extractor.log.warning("No 'token' provided")
self.headers = {
"fansly-client-ts": None,
"Origin" : extractor.root,
"authorization" : token,
}
if token := extractor.config("token"):
self.headers["authorization"] = token
self.extractor.log.debug(
"Using authorization 'token' %.5s...", token)
else:
self.extractor.log.warning("No 'token' provided")
def account(self, username):
endpoint = "/v1/account"
params = {"usernames": username}

View File

@@ -6,5 +6,5 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.30.6"
__version__ = "1.30.7-dev"
__variant__ = None