+import { YoutubeDLCLI } from '@server/helpers/youtube-dl'
+import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
import { AbstractScheduler } from './abstract-scheduler'
-import { SCHEDULER_INTERVALS_MS } from '../../initializers'
-import { updateYoutubeDLBinary } from '../../helpers/youtube-dl'
export class YoutubeDlUpdateScheduler extends AbstractScheduler {
private static instance: AbstractScheduler
- protected schedulerIntervalMs = SCHEDULER_INTERVALS_MS.youtubeDLUpdate
+ protected schedulerIntervalMs = SCHEDULER_INTERVALS_MS.YOUTUBE_DL_UPDATE
private constructor () {
super()
}
- execute () {
- return updateYoutubeDLBinary()
+ protected internalExecute () {
+ return YoutubeDLCLI.updateYoutubeDLBinary()
}
static get Instance () {