fix media organize and subscription workflows

This commit is contained in:
ShukeBta
2026-06-30 20:18:02 +08:00
parent b41f62d572
commit 941bb273b9
107 changed files with 5420 additions and 526 deletions
+9 -7
View File
@@ -21,18 +21,20 @@ import (
// DiscoverService talks to TMDb's /trending and /movie/popular endpoints.
type DiscoverService struct {
log *zap.Logger
tmdb *TMDbProvider
client *http.Client
images *ImageProxy
log *zap.Logger
tmdb *TMDbProvider
client *http.Client
images *ImageProxy
sectionCache *DiscoverSectionCache
}
// NewDiscoverService is the constructor.
func NewDiscoverService(log *zap.Logger, tmdb *TMDbProvider) *DiscoverService {
return &DiscoverService{
log: log,
tmdb: tmdb,
client: NewExternalHTTPClient(15 * time.Second),
log: log,
tmdb: tmdb,
client: NewExternalHTTPClient(15 * time.Second),
sectionCache: NewDiscoverSectionCache(6 * time.Hour),
}
}