Files
bitmagnet/internal/classifier/video/videofx/module.go
T
mgdigital 1053209612 Replace TMDB client with custom implementation (#168)
- Replace TMDB client with custom implementation (the previous client caused problems due to not using the Go context convention and imposing its own timeout)
- Check TMDB API key validity on startup
- Fall back to default TMDB API key when configured key is invalid
- Don't continue calling TMDB after receiving a 401

Fixes https://github.com/bitmagnet-io/bitmagnet/issues/157
2024-02-23 14:38:32 +00:00

18 lines
282 B
Go

package videofx
import (
"github.com/bitmagnet-io/bitmagnet/internal/classifier/video"
"github.com/bitmagnet-io/bitmagnet/internal/classifier/video/tmdb"
"go.uber.org/fx"
)
func New() fx.Option {
return fx.Module(
"movie",
fx.Provide(
tmdb.New,
video.New,
),
)
}