Full overhaul of the repo please see changelog

This commit is contained in:
Inside4ndroid committed 2025-09-16 18:54:12 +01:00
1 parent 2119398460
commit e0ad35d2b1
115 files changed
+26066 -6426

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
const { config } = require('./config');
function getTmdbApiKey() {
if (config.tmdbApiKeys && config.tmdbApiKeys.length) {
const idx = Math.floor(Math.random() * config.tmdbApiKeys.length);
return config.tmdbApiKeys[idx];
}
// Fallback legacy single value (config or env)
return config.tmdbApiKey || process.env.TMDB_API_KEY || null;
}
module.exports = { getTmdbApiKey };