Remove viper and file configuration

This commit is contained in:
video-prize-ranch
2022-04-22 11:55:53 -04:00
parent 4a41e59d34
commit 088f46a5bb
10 changed files with 62 additions and 82 deletions

View File

@@ -8,8 +8,8 @@ import (
"time"
"codeberg.org/video-prize-ranch/rimgo/types"
"codeberg.org/video-prize-ranch/rimgo/utils"
"github.com/patrickmn/go-cache"
"github.com/spf13/viper"
"github.com/tidwall/gjson"
)
@@ -27,7 +27,7 @@ func FetchTag(tag string, sort string, page string) (types.Tag, error) {
}
q := req.URL.Query()
q.Add("client_id", viper.GetString("RIMGU_IMGUR_CLIENT_ID"))
q.Add("client_id", utils.Config["imgurId"].(string))
q.Add("include", "cover")
q.Add("page", page)