Skip to content

Commit

Permalink
Merge pull request #25 from gferraro/update-config
Browse files Browse the repository at this point in the history
Update go-api
  • Loading branch information
GP authored Jun 27, 2019
2 parents 3573b50 + b373e7f commit 56b839f
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 178 deletions.
45 changes: 14 additions & 31 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ import (
"strconv"
"strings"

"github.com/TheCacophonyProject/go-api"

"github.com/TheCacophonyProject/audiobait/playlist"
"github.com/TheCacophonyProject/go-api"
)

const scheduleFilename = "schedule.json"
Expand Down Expand Up @@ -61,7 +60,7 @@ func createAudioPath(audioPath string) error {

func tryToInitiateAPI() *api.CacophonyAPI {
log.Println("Connecting with API")
api, err := api.NewAPIFromConfig("/etc/thermal-uploader.yaml")
api, err := api.NewAPI()
if err != nil {
log.Printf("Failed to connect with API %s", err.Error())
}
Expand Down
34 changes: 14 additions & 20 deletions vendor/github.com/TheCacophonyProject/go-api/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

108 changes: 62 additions & 46 deletions vendor/github.com/TheCacophonyProject/go-api/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 56b839f

Please sign in to comment.