Add ability to import video with youtube-dl

This commit is contained in:
Chocobozzz 2018-08-02 15:34:09 +02:00
parent 5e319fb789
commit fbad87b047
42 changed files with 1507 additions and 446 deletions

View file

@ -24,6 +24,7 @@ import { VideoTagModel } from '../models/video/video-tag'
import { CONFIG } from './constants'
import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update'
import { VideoCaptionModel } from '../models/video/video-caption'
import { VideoImportModel } from '../models/video/video-import'
require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
@ -81,7 +82,8 @@ async function initDatabaseModels (silent: boolean) {
VideoTagModel,
VideoModel,
VideoCommentModel,
ScheduleVideoUpdateModel
ScheduleVideoUpdateModel,
VideoImportModel
])
// Check extensions exist in the database