From 1a5f33601576df958dd52cb202e517af8916ee63 Mon Sep 17 00:00:00 2001 From: quinn <38194372+lollilol@users.noreply.github.com> Date: Sat, 27 Sep 2025 23:27:32 +0200 Subject: [PATCH 1/3] added info where to paste the media-user-token this is also missing for the next paragraph (syllable-lyrics) and i don't know which config value i need to use --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 04da52e..9be7211 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Original script by Sorrow. Modified by me to include some fixes and improvements 1. Open [Apple Music](https://music.apple.com) and log in 2. Open the Developer tools, Click `Application -> Storage -> Cookies -> https://music.apple.com` 3. Find the cookie named `media-user-token` and copy its value -4. Paste the cookie value obtained in step 3 into the config.yaml and save it +4. Paste the cookie value obtained in step 3 into the setting called "media-user-token" in config.yaml and save it 5. Start the script as usual ## Get translation and pronunciation lyrics (Beta) @@ -61,4 +61,4 @@ Original script by Sorrow. Modified by me to include some fixes and improvements 10. If don't need pronunciation, do this `...%5D=&extend...` on config.yaml and save it. 11. Start the script as usual. -Noted: These features are only in beta version right now. \ No newline at end of file +Noted: These features are only in beta version right now. From 656b2f9f454f4529ffb8efac355830eb12290a74 Mon Sep 17 00:00:00 2001 From: zhaarey <157944548+zhaarey@users.noreply.github.com> Date: Mon, 29 Sep 2025 14:17:37 +0800 Subject: [PATCH 2/3] fix --- go.mod | 4 ++-- go.sum | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 7803dd0..bf21aa8 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module main go 1.23.1 require ( - github.com/Eyevinn/mp4ff v0.50.0 // indirect github.com/aead/cmac v0.0.0-20160719120800-7af84192f0b1 github.com/grafov/m3u8 v0.11.1 github.com/schollz/progressbar/v3 v3.14.6 @@ -13,6 +12,7 @@ require ( ) require ( + github.com/Eyevinn/mp4ff v0.50.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect @@ -38,7 +38,7 @@ require ( github.com/beevik/etree v1.3.0 github.com/fatih/color v1.18.0 github.com/go-resty/resty/v2 v2.16.5 - github.com/itouakirai/mp4ff v0.0.0-20250925134252-75574f4c6b73 + github.com/itouakirai/mp4ff v0.0.0-20250929054714-77e796d393ee github.com/olekukonko/tablewriter v0.0.5 github.com/zhaarey/go-mp4tag v0.0.0-20250210094042-22578afc09bf gopkg.in/yaml.v2 v2.2.8 diff --git a/go.sum b/go.sum index ee93bc1..bd7774d 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/grafov/m3u8 v0.11.1 h1:igZ7EBIB2IAsPPazKwRKdbhxcoBKO3lO1UY57PZDeNA= github.com/grafov/m3u8 v0.11.1/go.mod h1:nqzOkfBiZJENr52zTVd/Dcl03yzphIMbJqkXGu+u080= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog= github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= -github.com/itouakirai/mp4ff v0.0.0-20250925134252-75574f4c6b73 h1:zqcDauiRnPaIjTXm2n9PcJ28UXonOFXFMKfLVjC826o= -github.com/itouakirai/mp4ff v0.0.0-20250925134252-75574f4c6b73/go.mod h1:epcaTcHNf0fgnK8d2MP/gPQNji50kvZa9ZxzX06UOoA= +github.com/itouakirai/mp4ff v0.0.0-20250929054714-77e796d393ee h1:IIMI9QdTGdveHtSy/d1NWLVd42bw4OXBINlwtdgIS9s= +github.com/itouakirai/mp4ff v0.0.0-20250929054714-77e796d393ee/go.mod h1:epcaTcHNf0fgnK8d2MP/gPQNji50kvZa9ZxzX06UOoA= github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213/go.mod h1:vNUNkEQ1e29fT/6vq2aBdFsgNPmy8qMdSay1npru+Sw= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= From 848f0911d4c5265a81fc368d621184fdb9f908db Mon Sep 17 00:00:00 2001 From: itouakirai <85016486+itouakirai@users.noreply.github.com> Date: Mon, 29 Sep 2025 14:47:39 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E8=89=BA=E6=9C=AF?= =?UTF-8?q?=E5=AE=B6=E5=90=8D=E7=A7=B0=E6=97=B6=E6=9C=AA=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 43cbf67..6e6b161 100644 --- a/main.go +++ b/main.go @@ -180,6 +180,7 @@ func getUrlArtistName(artistUrl string, token string) (string, string, error) { req.Header.Set("Origin", "https://music.apple.com") query := url.Values{} query.Set("l", Config.Language) + req.URL.RawQuery = query.Encode() do, err := http.DefaultClient.Do(req) if err != nil { return "", "", err