mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Rename video full loading
This commit is contained in:
parent
4c8336af67
commit
4fae2b1f30
31 changed files with 48 additions and 48 deletions
|
@ -42,7 +42,7 @@ async function processVideoTranscoding (job: Job) {
|
|||
const payload = job.data as VideoTranscodingPayload
|
||||
logger.info('Processing transcoding job %d.', job.id, lTags(payload.videoUUID))
|
||||
|
||||
const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(payload.videoUUID)
|
||||
const video = await VideoModel.loadFull(payload.videoUUID)
|
||||
// No video, maybe deleted?
|
||||
if (!video) {
|
||||
logger.info('Do not process job %d, video does not exist.', job.id, lTags(payload.videoUUID))
|
||||
|
@ -180,7 +180,7 @@ async function onVideoFirstWebTorrentTranscoding (
|
|||
const { resolution, isPortraitMode, audioStream } = await videoArg.probeMaxQualityFile()
|
||||
|
||||
// Maybe the video changed in database, refresh it
|
||||
const videoDatabase = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoArg.uuid)
|
||||
const videoDatabase = await VideoModel.loadFull(videoArg.uuid)
|
||||
// Video does not exist anymore
|
||||
if (!videoDatabase) return undefined
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue