aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-02 10:41:46 +0200
committerChocobozzz <me@florianbigard.com>2021-06-02 16:57:53 +0200
commit08a47c75f992e7138dca5121f227909a8347d365 (patch)
treeff66fdaacef9b68a046a55b953fbf9dc6a97843a /shared/extra-utils/videos
parent69290ab37b8aead01477b9b98fdfad0e69b08582 (diff)
downloadPeerTube-08a47c75f992e7138dca5121f227909a8347d365.tar.gz
PeerTube-08a47c75f992e7138dca5121f227909a8347d365.tar.zst
PeerTube-08a47c75f992e7138dca5121f227909a8347d365.zip
Refactor AP video create/update
Diffstat (limited to 'shared/extra-utils/videos')
-rw-r--r--shared/extra-utils/videos/videos.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index e88256ac0..98a568a02 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -774,9 +774,11 @@ async function completeVideoCheck (
774 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 774 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
775 } 775 }
776 776
777 expect(videoDetails.thumbnailPath).to.exist
777 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath) 778 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath)
778 779
779 if (attributes.previewfile) { 780 if (attributes.previewfile) {
781 expect(videoDetails.previewPath).to.exist
780 await testImage(url, attributes.previewfile, videoDetails.previewPath) 782 await testImage(url, attributes.previewfile, videoDetails.previewPath)
781 } 783 }
782} 784}