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. diff --git a/go.mod b/go.mod index b2769f9..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 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