diff --git a/client/client.go b/client/client.go index 9748c43..5ea0142 100644 --- a/client/client.go +++ b/client/client.go @@ -167,7 +167,7 @@ func (c Client) Playlist(sessionKey int, eabID string) (p Playlist, err error) { randUUID := func() string { randChars := func(n int) (s string) { c := []byte("ABCDEF0123456789") - for i := 0; i < 4; i++ { + for i := 0; i < n; i++ { s += string(c[frand.Intn(len(c))]) } return diff --git a/client/types.go b/client/types.go index b9f23c0..59c518d 100644 --- a/client/types.go +++ b/client/types.go @@ -5,6 +5,7 @@ import ( "time" ) +// These are constants taken from https://player.hulu.com/site/dash/308343-site-curiosity/js/app.js var ( deejayKey = []byte{110, 191, 200, 79, 60, 48, 66, 23, 178, 15, 217, 166, 108, 181, 149, 127} )