From ff25377cf1afa36cbacfa16068e1b742986204db Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Sun, 21 Nov 2021 12:08:34 -0500 Subject: [PATCH] rename hulu directory to prevent problem with go build --- {hulu => client}/client.go | 2 +- {hulu => client}/types.go | 0 main.go | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {hulu => client}/client.go (99%) rename {hulu => client}/types.go (100%) diff --git a/hulu/client.go b/client/client.go similarity index 99% rename from hulu/client.go rename to client/client.go index 1651e91..9748c43 100644 --- a/hulu/client.go +++ b/client/client.go @@ -164,7 +164,7 @@ func (c Client) PlaybackInformation(id string) (p PlaybackInformation, err error // the MPD file URL, and information relating to subtitles (Hulu calls them // transcripts). func (c Client) Playlist(sessionKey int, eabID string) (p Playlist, err error) { - randUUID := func() (s string) { + randUUID := func() string { randChars := func(n int) (s string) { c := []byte("ABCDEF0123456789") for i := 0; i < 4; i++ { diff --git a/hulu/types.go b/client/types.go similarity index 100% rename from hulu/types.go rename to client/types.go diff --git a/main.go b/main.go index d9f17f3..45af6ea 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/hex" "fmt" - "github.com/chris124567/hulu/hulu" + hulu "github.com/chris124567/hulu/client" "github.com/chris124567/hulu/widevine" "io" "lukechampine.com/flagg"