ncm_api_rs/api/song_url_match.rs
1use super::Query;
2use crate::error::Result;
3/// 网易云歌曲解灰 (适配 SPlayer 的 UNM-Server)
4/// 对应 Node.js module/song_url_match.js
5///
6/// 注意: 此功能依赖 Node.js 的 @neteasecloudmusicapienhanced/unblockmusic-utils,
7/// Rust 版本仅提供占位实现,返回不支持的错误。
8use crate::request::{ApiClient, ApiResponse};
9use serde_json::json;
10
11impl ApiClient {
12 /// 网易云歌曲解灰
13 /// 对应 /song/url/match
14 ///
15 /// 此功能依赖外部 unblockmusic-utils,Rust SDK 暂不支持。
16 pub async fn song_url_match(&self, _query: &Query) -> Result<ApiResponse> {
17 Ok(ApiResponse {
18 status: 500,
19 body: json!({
20 "code": 500,
21 "msg": "song_url_match is not supported in Rust SDK",
22 "data": [],
23 }),
24 cookie: vec![],
25 })
26 }
27}