Files
MusicServer/app/sdk/platforms/me/music_info.py
T
snowy-yang dfc06bf4de feat(python): 完成 Python 全量迁移——剩余平台、登录通道与公共层修复
- 新增 5sing/apple/xm/me/qt/lr 平台包与取流实现(含 xm-sign、MissEvan 签名、蜻蜓 HMAC、Apple developer token)
- 新增 wy/kg/tx/lr 登录:扫码、手机号、账密(kg 20028 风控指纹)、cookie 绑定、kg/tx 续期
- request 层:保留多值 Set-Cookie;JSON body 紧凑化(修复 kg 网关验签);直连不经系统代理(对齐 Node)
- 登录路由统一 Body(embed=True),修复扫码轮询 422;lifespan 接入登录续期调度
- ruff/format/pyright 全绿;14 平台真实联网与 HTTP 路由验证通过
2026-10-23 21:55:45 +08:00

19 lines
668 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""猫耳FM 曲目信息(对应 sdk/me/musicInfo.ts,App API 通道)。
接口: GET https://app.missevan.com/sound/sound?sound_id=
返回 info 直接是 sound 对象(非 web 版的 info.sound 包装):
soundstr/duration(毫秒)/front_cover/soundurl(原文件)/soundurl_64(=原文件)/
soundurl_128/-192k 变体,均为 maoercdn.com 免签名明文直链。
"""
from __future__ import annotations
from typing import Any
from app.sdk.platforms.me.sign import app_api_get
async def get_sound_info(sound_id: str) -> dict[str, Any]:
info = await app_api_get("/sound/sound", f"sound_id={sound_id}")
return info if isinstance(info, dict) else {}