Skip to content

Commit

Permalink
Use OAPI for test SDK access
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Jul 25, 2024
1 parent fe34ae4 commit d184138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version := $(shell git describe --tags)
prepare_test:
curl https://raw.githubusercontent.com/OdyseeTeam/gody-cdn/master/db-init.sql -o init.sql
cp config.example.json config.json
docker-compose up -d mysql lbrynet
docker-compose up -d mysql
# rm init.sql

.PHONY: test
Expand Down
3 changes: 2 additions & 1 deletion player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
edgeTokenHeader = "Authorization"
edgeTokenPrefix = "Token "
resolveCacheDuration = 5 * time.Minute
defaultSdkAddress = "https://api.na-backend.odysee.com/api/v1/proxy"
)

var (
Expand Down Expand Up @@ -75,7 +76,7 @@ func WithPrefetch(enabled bool) func(options *PlayerOptions) {
// NewPlayer initializes an instance with optional BlobStore.
func NewPlayer(hotCache *HotCache, optionFuncs ...func(*PlayerOptions)) *Player {
options := &PlayerOptions{
lbrynetAddress: "http://localhost:5279",
lbrynetAddress: defaultSdkAddress,
downloadsEnabled: true,
}

Expand Down

0 comments on commit d184138

Please sign in to comment.