Bump go.xtream-codes package (Fix Panic)

Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
This commit is contained in:
Pierre-Emmanuel Jacquier
2022-02-07 09:55:35 +00:00
parent 4382e11378
commit b187b44b3b
4 changed files with 14 additions and 6 deletions

2
go.mod
View File

@@ -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 (

4
go.sum
View File

@@ -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=

View File

@@ -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.

2
vendor/modules.txt vendored
View File

@@ -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