网易云音乐歌词显示 - #13
Open
1231joe1231 wants to merge 7 commits into
Open
Conversation
ychen022
added a commit
to ychen022/NuomiPlayer
that referenced
this pull request
Jul 5, 2026
…ttejas#13) Incorporates the translated-lyric feature from charlottejas#13 (by 1231joe1231) into the fork's shared module: - Add NcmLyricsHelper: fetches both the original lyric (lrc) and its translation (tlyric) from NetEase's encrypted weapi endpoint, replacing the simpler LyricFetcher (which only returned the original). LyricFetcher removed. - MyMusicService: when a NetEase song has a translation and the current line is not Chinese/English (i.e. contains Japanese kana), show the translation as the title and the original line as the subtitle simultaneously; otherwise keep the existing current-line + next-line display. Adds parseTranslation(), getTranslationAt(), isChineseOrEnglish(), and resets translation state on song and source changes. Only the numeric song id is sent, only to music.163.com (no new hosts vs. the prior NetEase lyric fetch). Validated: javalang parse + review for fidelity. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ychen022
added a commit
to ychen022/NuomiPlayer
that referenced
this pull request
Jul 5, 2026
- Rebuild 糯米播放器2.0-fixed.apk to include upstream PR charlottejas#13's simultaneous translated-lyric display, on top of the earlier startup fixes. The translation logic (weapi fetch of tlyric, LRC parse, Japanese-kana detection, time lookup) is compiled into a new com.nuomi.shared.NcmTranslationHelper injected as an extra classes3.dex; MyMusicService.smali is minimally edited to trigger the fetch and, when the current NetEase line is Japanese, show the translation as the title and the original as the subtitle. Original resources kept byte-for- byte (built by DEX swap, not apktool resource repackaging). - NcmLyricsHelper: request translation explicitly with tv=-1. Verified on device (CPH2583): installs, launches, MyMusicService loads/verifies and initializes (MirrorSession registered, autoLyrics read) with no VerifyError or crash. Debug-signed (same key as the prior build, so it updates in place). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
你好,你做的这个app非常好用,我为了歌词显示从网易云转到qq音乐 奈何曲库还是不能比
最近休假 我也有一些coding基础 就基于1.4.0版本 fork了一下 实现了网易云音乐的歌词显示
由于网易云没有把歌词在metadata中暴露出来 我在车机端添加了一个api工具 从网易云api根据歌曲的id获取歌词 加密参数和方法参考了其他开源项目:https://github.com/jitwxs/163MusicLyrics
同时还实现了以下feature:
如果pull request不方便的话 我也可以打包之后release在我自己的repo里 在readme里面加个链接就行
再次感谢!