Skip to content

Commit

Permalink
同步上游
Browse files Browse the repository at this point in the history
  • Loading branch information
kengwang committed Aug 23, 2022
1 parent b6b4bd5 commit 7f2cb74
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions NeteaseCloudMusicApi/CloudMusicApiProviders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,22 @@ public static class CloudMusicApiProviders {
}, null, "/api/song/enhance/player/url"));


/// <summary>
/// 获取音乐 url - v1
/// </summary>
public static readonly CloudMusicApiProvider SongUrlV1 = new CloudMusicApiProvider("/song/url/v1", HttpMethod.Post,
"https://interface.music.163.com/eapi/song/enhance/player/url/v1",
new[] {
new ParameterInfo("ids") { KeyForwarding = "id", Transformer = JsonArrayTransformer },
new ParameterInfo("level", ParameterType.Optional, "exhigh"),
new ParameterInfo("encodeType",ParameterType.Optional,"flac")
},
BuildOptions("eapi",
new[] {
new Cookie("os", "pc")
}, null, "/api/song/enhance/player/url/v1"));


/// <summary>
/// 获取歌曲详情
/// </summary>
Expand Down

0 comments on commit 7f2cb74

Please sign in to comment.