From df6cf3edcbb560e7615ad13d8daf4843507eb11e Mon Sep 17 00:00:00 2001 From: Bobby <30593201+luciferreeves@users.noreply.github.com> Date: Tue, 20 Jan 2026 18:00:43 +0530 Subject: Add TVDB integration for episode retrieval and configuration setup --- config/config.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index c70560d..b0e9eee 100644 --- a/config/config.go +++ b/config/config.go @@ -29,6 +29,9 @@ func init() { APIKey: getEnv("TMDB_API_KEY"), ReadAccessToken: getEnv("TMDB_READ_ACCESS_TOKEN"), }, + TVDB: types.TVDBConfig{ + APIKey: getEnv("TVDB_API_KEY"), + }, } switch Config.DatabaseDriver { @@ -53,6 +56,10 @@ func init() { logger.Log("Invalid TMDB read access token or TMDB read access token not set", logOptions) } + if Config.TVDB.APIKey == "" { + logger.Log("Invalid TVDB API key or TVDB API key not set", logOptions) + } + logOptions.Level = logger.Success logOptions.Fatal = false logger.Log("Config initialized successfully", logOptions) -- cgit v1.2.3