mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-28 03:23:57 -06:00
Fix static ffmpeg version check
This commit is contained in:
parent
75cba40de7
commit
20373985c0
@ -657,7 +657,7 @@ function getFFmpegVersion () {
|
|||||||
|
|
||||||
return execPromise(`${ffmpegPath} -version`)
|
return execPromise(`${ffmpegPath} -version`)
|
||||||
.then(stdout => {
|
.then(stdout => {
|
||||||
const parsed = stdout.match(/ffmpeg version .(\d+\.\d+\.\d+)/)
|
const parsed = stdout.match(/ffmpeg version .?(\d+\.\d+\.\d+)/)
|
||||||
if (!parsed || !parsed[1]) return rej(new Error(`Could not find ffmpeg version in ${stdout}`))
|
if (!parsed || !parsed[1]) return rej(new Error(`Could not find ffmpeg version in ${stdout}`))
|
||||||
|
|
||||||
return res(parsed[1])
|
return res(parsed[1])
|
||||||
|
@ -77,14 +77,14 @@ describe('Test regenerate thumbnails script', function () {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should regenerate thumbnails from the CLI', async function () {
|
it('Should regenerate local thumbnails from the CLI', async function () {
|
||||||
this.timeout(15000)
|
this.timeout(15000)
|
||||||
|
|
||||||
const env = getEnvCli(servers[0])
|
const env = getEnvCli(servers[0])
|
||||||
await execCLI(`${env} npm run regenerate-thumbnails`)
|
await execCLI(`${env} npm run regenerate-thumbnails`)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should have regenerated thumbbnails', async function () {
|
it('Should have regenerated local thumbnails', async function () {
|
||||||
{
|
{
|
||||||
const res1 = await makeRawRequest(join(servers[0].url, video1.thumbnailPath), HttpStatusCode.OK_200)
|
const res1 = await makeRawRequest(join(servers[0].url, video1.thumbnailPath), HttpStatusCode.OK_200)
|
||||||
expect(res1.body).to.not.have.lengthOf(0)
|
expect(res1.body).to.not.have.lengthOf(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user