diff --git a/go.mod b/go.mod index 211642b0..781e37d5 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/satori/go.uuid v1.2.0 github.com/spf13/cobra v1.2.1 github.com/spf13/viper v1.8.1 - github.com/tellytv/go.xtream-codes v0.0.0-20220110144747-b72d9dcb3195 + github.com/tellytv/go.xtream-codes v0.0.0-20220204001149-59925bc76764 ) require ( diff --git a/go.sum b/go.sum index 8ed6524a..b15e87f0 100644 --- a/go.sum +++ b/go.sum @@ -282,8 +282,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/tellytv/go.xtream-codes v0.0.0-20220110144747-b72d9dcb3195 h1:Tm9sCv8fesKxX+NIfkbZPn6otBK+7lWWiz0czAf4sw8= -github.com/tellytv/go.xtream-codes v0.0.0-20220110144747-b72d9dcb3195/go.mod h1:8fbwWl4BCtFxxEhTTAqzjN11aC5TKWdc3yHlH/iXORo= +github.com/tellytv/go.xtream-codes v0.0.0-20220204001149-59925bc76764 h1:0ndlBWeI4p3jyzr5KWrtOVQsCimAUBo86/svYFDTgVo= +github.com/tellytv/go.xtream-codes v0.0.0-20220204001149-59925bc76764/go.mod h1:8fbwWl4BCtFxxEhTTAqzjN11aC5TKWdc3yHlH/iXORo= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181209151446-772ced7fd4c2/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= diff --git a/vendor/github.com/tellytv/go.xtream-codes/xtream-codes.go b/vendor/github.com/tellytv/go.xtream-codes/xtream-codes.go index 0bb0cf09..88309630 100644 --- a/vendor/github.com/tellytv/go.xtream-codes/xtream-codes.go +++ b/vendor/github.com/tellytv/go.xtream-codes/xtream-codes.go @@ -72,16 +72,24 @@ func NewClient(username, password, baseURL string) (*XtreamClient, error) { // NewClientWithContext returns an initialized XtreamClient with the given values. func NewClientWithContext(ctx context.Context, username, password, baseURL string) (*XtreamClient, error) { c, err := NewClient(username, password, baseURL) + if err != nil { + return nil, err + } c.Context = ctx - return c, err + + return c, nil } // NewClientWithUserAgent returns an initialized XtreamClient with the given values. func NewClientWithUserAgent(ctx context.Context, username, password, baseURL, userAgent string) (*XtreamClient, error) { c, err := NewClient(username, password, baseURL) + if err != nil { + return nil, err + } c.UserAgent = userAgent c.Context = ctx - return c, err + + return c, nil } // GetStreamURL will return a stream URL string for the given streamID and wantedFormat. diff --git a/vendor/modules.txt b/vendor/modules.txt index ac001abf..5e12718c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -97,7 +97,7 @@ github.com/spf13/viper # github.com/subosito/gotenv v1.2.0 ## explicit github.com/subosito/gotenv -# github.com/tellytv/go.xtream-codes v0.0.0-20220110144747-b72d9dcb3195 +# github.com/tellytv/go.xtream-codes v0.0.0-20220204001149-59925bc76764 ## explicit; go 1.17 github.com/tellytv/go.xtream-codes # github.com/ugorji/go/codec v1.1.7