aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create-move-video-storage-job.ts2
-rwxr-xr-xscripts/create-transcoding-job.ts2
-rw-r--r--scripts/migrations/peertube-4.0.ts2
-rwxr-xr-xscripts/update-host.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/create-move-video-storage-job.ts b/scripts/create-move-video-storage-job.ts
index 18629aa27..0f0d4ee35 100644
--- a/scripts/create-move-video-storage-job.ts
+++ b/scripts/create-move-video-storage-job.ts
@@ -70,7 +70,7 @@ async function run () {
70 } 70 }
71 71
72 for (const id of ids) { 72 for (const id of ids) {
73 const videoFull = await VideoModel.loadAndPopulateAccountAndServerAndTags(id) 73 const videoFull = await VideoModel.loadFull(id)
74 74
75 const files = videoFull.VideoFiles || [] 75 const files = videoFull.VideoFiles || []
76 const hls = videoFull.getHLSPlaylist() 76 const hls = videoFull.getHLSPlaylist()
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts
index 59fc84ad5..8f4d64290 100755
--- a/scripts/create-transcoding-job.ts
+++ b/scripts/create-transcoding-job.ts
@@ -43,7 +43,7 @@ async function run () {
43 return 43 return
44 } 44 }
45 45
46 const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(uuid) 46 const video = await VideoModel.loadFull(uuid)
47 if (!video) throw new Error('Video not found.') 47 if (!video) throw new Error('Video not found.')
48 48
49 const dataInput: VideoTranscodingPayload[] = [] 49 const dataInput: VideoTranscodingPayload[] = []
diff --git a/scripts/migrations/peertube-4.0.ts b/scripts/migrations/peertube-4.0.ts
index 64cf45474..9e5ca60d4 100644
--- a/scripts/migrations/peertube-4.0.ts
+++ b/scripts/migrations/peertube-4.0.ts
@@ -97,7 +97,7 @@ async function processVideo (videoId: number) {
97 // Everything worked, we can save the playlist now 97 // Everything worked, we can save the playlist now
98 await playlist.save() 98 await playlist.save()
99 99
100 const allVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id) 100 const allVideo = await VideoModel.loadFull(video.id)
101 await federateVideoIfNeeded(allVideo, false) 101 await federateVideoIfNeeded(allVideo, false)
102 102
103 console.log(`Successfully moved HLS files of ${video.name}.`) 103 console.log(`Successfully moved HLS files of ${video.name}.`)
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index bb54290a4..1d17ce152 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -114,7 +114,7 @@ async function run () {
114 114
115 const ids = await VideoModel.listLocalIds() 115 const ids = await VideoModel.listLocalIds()
116 for (const id of ids) { 116 for (const id of ids) {
117 const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(id) 117 const video = await VideoModel.loadFull(id)
118 118
119 console.log('Updating video ' + video.uuid) 119 console.log('Updating video ' + video.uuid)
120 120