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

Method constructor

server/modules/downloadModule.js:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13class DownloadModule {
14 constructor() {
15 this.config = configModule.getConfig(); // Get the initial configuration
16 this.downloadExecutor = new DownloadExecutor({
17 enqueueAutoRetry: (payload) => this.enqueueAutoRetryJob(payload),
18 });
19 configModule.on('change', this.handleConfigChange.bind(this)); // Listen for configuration changes
20
21 // Clean temp directory on startup if temp downloads are enabled
22 this.initializeTempDirectory();
23 }
24
25 async initializeTempDirectory() {
26 try {

Callers

nothing calls this directly

Calls 3

enqueueAutoRetryJobMethod · 0.95
getConfigMethod · 0.80

Tested by

no test coverage detected