Files
lrx-cli/lrx_cli/authenticators/qqmusic.py
T
2026-04-05 04:12:49 +02:00

26 lines
563 B
Python

"""
Author: Uyanide pywang0608@foxmail.com
Date: 2026-04-05 03:47:30
Description: QQ Music API authenticator - currently only a proxy
"""
from typing import Optional
from .base import BaseAuthenticator
from ..config import QQ_MUSIC_API_URL
class QQMusicAuthenticator(BaseAuthenticator):
def __init__(self) -> None:
pass
@property
def name(self) -> str:
return "qqmusic"
def is_configured(self) -> bool:
return bool(QQ_MUSIC_API_URL)
async def authenticate(self) -> Optional[str]:
return QQ_MUSIC_API_URL