Fix images size when downloading them

This commit is contained in:
Chocobozzz
2018-11-16 16:48:17 +01:00
parent babecc3c09
commit 58d515e32f
5 changed files with 25 additions and 21 deletions

View File

@@ -17,7 +17,7 @@ import {
viewVideo,
wait,
waitUntilLog,
checkVideoFilesWereRemoved, removeVideo
checkVideoFilesWereRemoved, removeVideo, getVideoWithToken
} from '../../utils'
import { waitJobs } from '../../utils/server/jobs'
import * as magnetUtil from 'magnet-uri'
@@ -93,7 +93,8 @@ async function check1WebSeed (strategy: VideoRedundancyStrategy, videoUUID?: str
for (const server of servers) {
{
const res = await getVideo(server.url, videoUUID)
// With token to avoid issues with video follow constraints
const res = await getVideoWithToken(server.url, server.accessToken, videoUUID)
const video: VideoDetails = res.body
for (const f of video.files) {