🔧 Add some basic app config values
This commit is contained in:
parent
1e78a95e8a
commit
8860c53d45
2 changed files with 13 additions and 9 deletions
|
|
@ -5,7 +5,8 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
//"codeberg.org/danjones000/strip-beats/config"
|
||||
|
||||
"codeberg.org/danjones000/strip-beats/config"
|
||||
)
|
||||
|
||||
type MbRecording struct {
|
||||
|
|
@ -61,7 +62,7 @@ func FillMbRecording(rec *MbRecording) error {
|
|||
q.Add("fmt", "json")
|
||||
q.Add("inc", "releases+media")
|
||||
req.URL.RawQuery = q.Encode()
|
||||
req.Header.Set("User-Agent", "strip-beats/0.1.0 (https://codeberg.org/danjones000/strip-beats/)")
|
||||
req.Header.Set("User-Agent", config.UserAgent)
|
||||
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue