1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Use a class for youtube-dl

This commit is contained in:
Chocobozzz 2021-05-11 10:54:05 +02:00
parent ac2a5b5427
commit 1bcb03a100
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 368 additions and 364 deletions

View file

@ -1,6 +1,6 @@
import { AbstractScheduler } from './abstract-scheduler'
import { YoutubeDL } from '@server/helpers/youtube-dl'
import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
import { updateYoutubeDLBinary } from '../../helpers/youtube-dl'
import { AbstractScheduler } from './abstract-scheduler'
export class YoutubeDlUpdateScheduler extends AbstractScheduler {
@ -13,7 +13,7 @@ export class YoutubeDlUpdateScheduler extends AbstractScheduler {
}
protected internalExecute () {
return updateYoutubeDLBinary()
return YoutubeDL.updateYoutubeDLBinary()
}
static get Instance () {