feat: embed default tmdb api key

This commit is contained in:
Simon Ding
2025-03-19 10:49:05 +08:00
parent ca06e560e3
commit be86fd05e1
6 changed files with 24 additions and 7 deletions

View File

@@ -145,7 +145,7 @@ func (c *Client) GetDownloadClient() (pkg.Downloader, *ent.DownloadClients, erro
}
func (c *Client) TMDB() (*tmdb.Client, error) {
api := c.db.GetSetting(db.SettingTmdbApiKey)
api := c.db.GetTmdbApiKey()
if api == "" {
return nil, errors.New("TMDB apiKey not set")
}

View File

@@ -146,7 +146,7 @@ func (s *Server) Serve() error {
}
func (s *Server) TMDB() (*tmdb.Client, error) {
api := s.db.GetSetting(db.SettingTmdbApiKey)
api := s.db.GetTmdbApiKey()
if api == "" {
return nil, errors.New("TMDB apiKey not set")
}