chore: rename

This commit is contained in:
Simon Ding
2025-03-19 13:44:45 +08:00
parent 6d77bed506
commit b4b767d4c2
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ RUN go mod download
COPY . .
# 指定OS等并go build
RUN CGO_ENABLED=0 go build -o polaris -ldflags="-X polaris/db.Version=$(git describe --tags --long) -X polaris/db.TmdbApiKey=$(echo $TMDB_API_KEY)" ./cmd/
RUN CGO_ENABLED=0 go build -o polaris -ldflags="-X polaris/db.Version=$(git describe --tags --long) -X polaris/db.DefaultTmdbApiKey=$(echo $TMDB_API_KEY)" ./cmd/
FROM debian:stable-slim

View File

@@ -4,7 +4,7 @@ import "polaris/ent/media"
var (
Version = "undefined"
TmdbApiKey = ""
DefaultTmdbApiKey = ""
)
const (

View File

@@ -738,7 +738,7 @@ func (c *Client) SetAcceptedSubtitleFormats(key string, v []string) error {
func (c *Client) GetTmdbApiKey() string {
k := c.GetSetting(SettingTmdbApiKey)
if k == "" {
return TmdbApiKey
return DefaultTmdbApiKey
}
return k
}