aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/videos.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index 9dec12703..d1ac48292 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -587,19 +587,17 @@ async function completeVideoCheck (
587 'File size for resolution ' + file.resolution.label + ' outside confidence interval (' + minSize + '> size <' + maxSize + ')') 587 'File size for resolution ' + file.resolution.label + ' outside confidence interval (' + minSize + '> size <' + maxSize + ')')
588 .to.be.above(minSize).and.below(maxSize) 588 .to.be.above(minSize).and.below(maxSize)
589 589
590 {
591 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath)
592 }
593
594 if (attributes.previewfile) {
595 await testImage(url, attributes.previewfile, videoDetails.previewPath)
596 }
597
598 const torrent = await webtorrentAdd(file.magnetUri, true) 590 const torrent = await webtorrentAdd(file.magnetUri, true)
599 expect(torrent.files).to.be.an('array') 591 expect(torrent.files).to.be.an('array')
600 expect(torrent.files.length).to.equal(1) 592 expect(torrent.files.length).to.equal(1)
601 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 593 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
602 } 594 }
595
596 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath)
597
598 if (attributes.previewfile) {
599 await testImage(url, attributes.previewfile, videoDetails.previewPath)
600 }
603} 601}
604 602
605async function videoUUIDToId (url: string, id: number | string) { 603async function videoUUIDToId (url: string, id: number | string) {