feat: proxy only affects tmdb

This commit is contained in:
Simon Ding
2024-08-03 09:54:23 +08:00
parent f4da80c845
commit 578b6a9d78
4 changed files with 30 additions and 32 deletions

View File

@@ -66,7 +66,8 @@ func (c *Client) TMDB() (*tmdb.Client, error) {
if api == "" {
return nil, errors.New("TMDB apiKey not set")
}
return tmdb.NewClient(api)
proxy := c.db.GetSetting(db.SettingProxy)
return tmdb.NewClient(api, proxy)
}
func (c *Client) MustTMDB() *tmdb.Client {