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

Method deleteCustomCookiesFile

server/modules/configModule.js:510–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

508 }
509
510 deleteCustomCookiesFile() {
511 const configDir = path.dirname(this.configPath);
512 const customPath = path.join(configDir, 'cookies.user.txt');
513
514 if (fs.existsSync(customPath)) {
515 fs.unlinkSync(customPath);
516 }
517
518 // Update config
519 this.config.customCookiesUploaded = false;
520 // Keep cookiesEnabled state unchanged
521 this.saveConfig();
522 this.emit('change');
523
524 return true;
525 }
526
527 async getStorageStatus() {
528 const { execFile } = require('child_process');

Callers 3

config.jsFile · 0.80

Calls 1

saveConfigMethod · 0.95

Tested by

no test coverage detected