1 import { AbstractScheduler } from './abstract-scheduler'
2 import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
3 import { updateYoutubeDLBinary } from '../../helpers/youtube-dl'
5 export class YoutubeDlUpdateScheduler extends AbstractScheduler {
7 private static instance: AbstractScheduler
9 protected schedulerIntervalMs = SCHEDULER_INTERVALS_MS.youtubeDLUpdate
11 private constructor () {
15 protected internalExecute () {
16 return updateYoutubeDLBinary()
19 static get Instance () {
20 return this.instance || (this.instance = new this())