diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2021-11-09 11:05:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 11:05:35 +0100 |
commit | e1ab52d7ec7370a6f9f5937192d6003206af1ac0 (patch) | |
tree | aecc8b696b0021e073fd205dd6e126fb4f178e8f /scripts/update-host.ts | |
parent | c49c366ac320fe5ac3dc08f5891fe5898c1b34e3 (diff) | |
download | PeerTube-e1ab52d7ec7370a6f9f5937192d6003206af1ac0.tar.gz PeerTube-e1ab52d7ec7370a6f9f5937192d6003206af1ac0.tar.zst PeerTube-e1ab52d7ec7370a6f9f5937192d6003206af1ac0.zip |
Add migrate-to-object-storage script (#4481)
* add migrate-to-object-storage-script
closes #4467
* add migrate-to-unique-playlist-filenames script
* fix(migrate-to-unique-playlist-filenames): update master/segments256
run updateMasterHLSPlaylist and updateSha256VODSegments after
file rename.
* Improve move to object storage scripts
* PR remarks
Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'scripts/update-host.ts')
-rwxr-xr-x | scripts/update-host.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts index 5d81a8d74..c6eb9d533 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts | |||
@@ -115,9 +115,9 @@ async function run () { | |||
115 | 115 | ||
116 | console.log('Updating video and torrent files.') | 116 | console.log('Updating video and torrent files.') |
117 | 117 | ||
118 | const localVideos = await VideoModel.listLocal() | 118 | const ids = await VideoModel.listLocalIds() |
119 | for (const localVideo of localVideos) { | 119 | for (const id of ids) { |
120 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(localVideo.id) | 120 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(id) |
121 | 121 | ||
122 | console.log('Updating video ' + video.uuid) | 122 | console.log('Updating video ' + video.uuid) |
123 | 123 | ||