mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Make it compile at least
This commit is contained in:
parent
38fa206583
commit
571389d43b
53 changed files with 342 additions and 1256 deletions
5
server/lib/cache/videos-preview-cache.ts
vendored
5
server/lib/cache/videos-preview-cache.ts
vendored
|
@ -3,9 +3,8 @@ import { join } from 'path'
|
|||
import { createWriteStream } from 'fs'
|
||||
|
||||
import { database as db, CONFIG, CACHE } from '../../initializers'
|
||||
import { logger, unlinkPromise } from '../../helpers'
|
||||
import { logger, unlinkPromise, fetchRemoteVideoPreview } from '../../helpers'
|
||||
import { VideoInstance } from '../../models'
|
||||
import { fetchRemotePreview } from '../../lib'
|
||||
|
||||
class VideosPreviewCache {
|
||||
|
||||
|
@ -54,7 +53,7 @@ class VideosPreviewCache {
|
|||
}
|
||||
|
||||
private saveRemotePreviewAndReturnPath (video: VideoInstance) {
|
||||
const req = fetchRemotePreview(video)
|
||||
const req = fetchRemoteVideoPreview(video)
|
||||
|
||||
return new Promise<string>((res, rej) => {
|
||||
const path = join(CACHE.DIRECTORIES.PREVIEWS, video.getPreviewName())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue