forked from sim1222-mirror/apple-music-downloader
add acc-lc dl
This commit is contained in:
16
utils/runv3/cdm/pssh.go
Normal file
16
utils/runv3/cdm/pssh.go
Normal file
@ -0,0 +1,16 @@
|
||||
package wv
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func GetCertData(client *http.Client, licenseURL string) ([]byte, error) {
|
||||
response, err := client.Post(licenseURL, "application/x-www-form-urlencoded", bytes.NewReader([]byte{0x08, 0x04}))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer response.Body.Close()
|
||||
return io.ReadAll(response.Body)
|
||||
}
|
Reference in New Issue
Block a user