MCPcopy Create free account
hub / github.com/DialmasterOrg/Youtarr / updateConfig

Method updateConfig

server/modules/configModule.js:318–330  ·  view source on GitHub ↗
(newConfig)

Source from the content-addressed store, hash-verified

316 }
317
318 updateConfig(newConfig) {
319 this.config = newConfig;
320
321 // Override temp download settings for Elfhosted platform
322 if (this.isElfhostedPlatform()) {
323 this.config.useTmpForDownloads = true;
324 this.config.tmpFilePath = '/app/config/temp_downloads';
325 }
326
327 this.saveConfig();
328 // Emit a change event
329 this.emit('change');
330 }
331
332 saveConfig() {
333 // Create a copy of the config to save

Callers 10

initializeFunction · 0.80
backfillVideoMetadataMethod · 0.80
initializeFunction · 0.80
checkPinMethod · 0.80
setup.jsFile · 0.80
plex.jsFile · 0.80
auth.jsFile · 0.80
handleUpdateConfigFunction · 0.80
youtubeApiKey.jsFile · 0.80

Calls 2

isElfhostedPlatformMethod · 0.95
saveConfigMethod · 0.95

Tested by

no test coverage detected