mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Use random names for VOD HLS playlists
This commit is contained in:
parent
83903cb65d
commit
764b1a14fc
44 changed files with 508 additions and 281 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
import 'mocha'
|
||||
import { expect } from 'chai'
|
||||
import { join } from 'path'
|
||||
import { getAudioStream, getVideoFileFPS, getVideoStreamFromFile } from '@server/helpers/ffprobe-utils'
|
||||
import {
|
||||
cleanupTests,
|
||||
|
@ -247,7 +246,9 @@ describe('Test transcoding plugins', function () {
|
|||
const videoUUID = (await server.videos.quickUpload({ name: 'video', fixture: 'video_very_short_240p.mp4' })).uuid
|
||||
await waitJobs([ server ])
|
||||
|
||||
const path = server.servers.buildDirectory(join('videos', videoUUID + '-240.mp4'))
|
||||
const video = await server.videos.get({ id: videoUUID })
|
||||
|
||||
const path = server.servers.buildWebTorrentFilePath(video.files[0].fileUrl)
|
||||
const audioProbe = await getAudioStream(path)
|
||||
expect(audioProbe.audioStream.codec_name).to.equal('opus')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue