mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-07 02:27:40 +08:00
welcome page update
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package tmdb
|
||||
|
||||
import (
|
||||
"polaris/log"
|
||||
|
||||
tmdb "github.com/cyruzin/golang-tmdb"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
@@ -23,6 +25,7 @@ func NewClient(apiKey string) (*Client, error) {
|
||||
}
|
||||
|
||||
func (c *Client) GetTvDetails(id int, language string) (*tmdb.TVDetails, error) {
|
||||
log.Infof("tv id %d, language %s", id, language)
|
||||
language = wrapLanguage(language)
|
||||
d, err := c.tmdbClient.GetTVDetails(id, withLangOption(language))
|
||||
return d, err
|
||||
|
||||
Reference in New Issue
Block a user