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:
parent
ac2a5b5427
commit
1bcb03a100
8 changed files with 368 additions and 364 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue