mirror of
https://github.com/bitmagnet-io/bitmagnet.git
synced 2026-05-06 04:16:44 -04:00
1053209612
- 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
18 lines
282 B
Go
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,
|
|
),
|
|
)
|
|
}
|