chore: enhance comments

This commit is contained in:
2026-04-06 08:20:23 +02:00
parent 2d70231502
commit c5abbff14c
30 changed files with 65 additions and 80 deletions
+1
View File
@@ -1,5 +1,6 @@
"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-06 08:21:01
Description: Credential authenticators for third-party provider APIs
"""
+1 -1
View File
@@ -1,7 +1,7 @@
"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-05 03:18:14
Description: Base class for credential authenticators
Description: Base class for credential authenticators.
"""
from abc import ABC, abstractmethod
+1 -1
View File
@@ -1,7 +1,7 @@
"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-05 03:36:44
Description:
Description: A dummy authenticator that does nothing and always reports as configured.
"""
from .base import BaseAuthenticator
+1 -1
View File
@@ -1,7 +1,7 @@
"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-05 03:27:56
Description: Musixmatch authenticator — token management, 401 retry, and cooldown
Description: Musixmatch authenticator — token management, 401 retry, and cooldown.
"""
import time
+1 -1
View File
@@ -1,7 +1,7 @@
"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-05 03:47:30
Description: QQ Music API authenticator - currently only a proxy
Description: QQ Music API authenticator - currently only a proxy.
"""
from typing import Optional
+2 -4
View File
@@ -1,7 +1,7 @@
"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-05 03:18:14
Description: Spotify authenticator — TOTP-based access token via SP_DC cookie
Description: Spotify authenticator — TOTP-based access token via SP_DC cookie.
"""
import hashlib
@@ -134,9 +134,7 @@ class SpotifyAuthenticator(BaseAuthenticator):
return db_token
if not credentials.SPOTIFY_SP_DC:
logger.error(
"Spotify: settings.SPOTIFY_SP_DC env var not set — cannot authenticate"
)
logger.error("Spotify: SPOTIFY_SP_DC env var not set — cannot authenticate")
return None
headers = {