From 1019c139a8cf6401a781974af7127e0d0c5b4441 Mon Sep 17 00:00:00 2001 From: Jon Williams Date: Tue, 11 May 2021 13:51:00 -0400 Subject: [PATCH 1/2] added LaunchWithValues --- remote.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/remote.go b/remote.go index a7be6bb..10464b5 100644 --- a/remote.go +++ b/remote.go @@ -100,7 +100,12 @@ func (r *Remote) ActiveApp() (*App, error) { // Launch will launch a given App func (r *Remote) Launch(app *App) error { - return r.launch(app.Id) + return r.launch(app.Id, nil) +} + +// LaunchWithValues will launch a given App with exta arguments +func (r *Remote) LaunchWithValues(app *App, values url.Values) error { + return r.launch(app.Id, values) } // Install will install the given app. @@ -251,8 +256,8 @@ func (r *Remote) install(appID string) error { } // helper method for hitting the `launch` endpoint -func (r *Remote) launch(appID string) error { - URL := fmt.Sprintf("http://%s/launch/%s", r.Addr, appID) +func (r *Remote) launch(appID string, values url.Values) error { + URL := fmt.Sprintf("http://%s/launch/%s?%s", r.Addr, appID, values.Encode()) resp, err := http.Post(URL, "", nil) if err != nil { From 85a3476ae71d11adc3a6f87382778e124c695f3e Mon Sep 17 00:00:00 2001 From: Jon Williams Date: Tue, 22 Feb 2022 21:35:53 -0500 Subject: [PATCH 2/2] point at own repo --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index db327ab..d249d68 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/linuxfreak003/roku +module github.com/WIZARDISHUNGRY/roku go 1.14