Init commit

This commit is contained in:
ShreejitPanchal
2026-05-19 19:56:02 +08:00
commit 6601501eff
4047 changed files with 2185372 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { logger, loggerTagsFactory } from '@server/helpers/logger.js'
import { YoutubeDLCLI } from '@server/helpers/youtube-dl/index.js'
import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants.js'
import { AbstractScheduler } from './abstract-scheduler.js'
const lTags = loggerTagsFactory('schedulers', 'youtube-dl')
export class YoutubeDlUpdateScheduler extends AbstractScheduler {
private static instance: AbstractScheduler
protected schedulerIntervalMs = SCHEDULER_INTERVALS_MS.YOUTUBE_DL_UPDATE
private constructor () {
super({ randomRunOnEnable: true })
}
protected internalExecute () {
logger.info('Running youtube-dl updated scheduler', lTags())
return YoutubeDLCLI.updateYoutubeDLBinary()
}
static get Instance () {
return this.instance || (this.instance = new this())
}
}