From f519eb1251be85368fe64167f570afc81ce9aab9 Mon Sep 17 00:00:00 2001 From: real-zony Date: Thu, 22 Sep 2022 18:08:26 +0800 Subject: [PATCH] feat(Test NetEaseMusic's Romance lyrics.): --- .../Lyric/NetEase/JsonModel/GetLyricRequest.cs | 8 ++++++-- .../Lyric/NetEase/JsonModel/GetLyricResponse.cs | 6 ++++++ .../Lyric/NetEase/JsonModel/SongSearchRequest.cs | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricRequest.cs b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricRequest.cs index 6d2cf0b..602a7e6 100644 --- a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricRequest.cs +++ b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricRequest.cs @@ -8,9 +8,9 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase.JsonModel { public GetLyricRequest(long songId) { - OS = "osx"; + OS = "ios"; Id = songId; - Lv = Kv = Tv = -1; + Lv = Kv = Tv = Rv = -1; } /// @@ -30,5 +30,9 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase.JsonModel [JsonProperty("kv")] public int Kv { get; } [JsonProperty("tv")] public int Tv { get; } + + [JsonProperty("rv")] public int Rv { get; set; } + + [JsonProperty("crypto")] public string Protocol { get; set; } = "api"; } } \ No newline at end of file diff --git a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricResponse.cs b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricResponse.cs index 48648ba..12d372f 100644 --- a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricResponse.cs +++ b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/GetLyricResponse.cs @@ -22,6 +22,12 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase.JsonModel [JsonProperty("tlyric")] public InnerLyric TranslationLyric { get; set; } + /// + /// 如果存在罗马音歌词,则本项内容为罗马音歌词。 + /// + [JsonProperty("romalrc")] + public InnerLyric RomaLyric { get; set; } + /// /// 状态码。 /// diff --git a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/SongSearchRequest.cs b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/SongSearchRequest.cs index 3c694bd..df91141 100644 --- a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/SongSearchRequest.cs +++ b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/JsonModel/SongSearchRequest.cs @@ -43,6 +43,8 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase.JsonModel [JsonProperty("limit")] public int Limit { get; set; } + [JsonProperty("crypto")] public string Crypto { get; set; } = "weapi"; + public SongSearchRequest() { CsrfToken = string.Empty;