mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Move video file metadata in their own table
Will be used for user video quotas and multiple video resolutions
This commit is contained in:
parent
69f224587e
commit
93e1258c7c
30 changed files with 818 additions and 340 deletions
|
@ -56,9 +56,10 @@ describe('Test video transcoding', function () {
|
|||
if (err) throw err
|
||||
|
||||
const video = res.body.data[0]
|
||||
expect(video.magnetUri).to.match(/\.webm/)
|
||||
const magnetUri = video.files[0].magnetUri
|
||||
expect(magnetUri).to.match(/\.webm/)
|
||||
|
||||
webtorrent.add(video.magnetUri, function (torrent) {
|
||||
webtorrent.add(magnetUri, function (torrent) {
|
||||
expect(torrent.files).to.exist
|
||||
expect(torrent.files.length).to.equal(1)
|
||||
expect(torrent.files[0].path).match(/\.webm$/)
|
||||
|
@ -86,9 +87,10 @@ describe('Test video transcoding', function () {
|
|||
if (err) throw err
|
||||
|
||||
const video = res.body.data[0]
|
||||
expect(video.magnetUri).to.match(/\.mp4/)
|
||||
const magnetUri = video.files[0].magnetUri
|
||||
expect(magnetUri).to.match(/\.mp4/)
|
||||
|
||||
webtorrent.add(video.magnetUri, function (torrent) {
|
||||
webtorrent.add(magnetUri, function (torrent) {
|
||||
expect(torrent.files).to.exist
|
||||
expect(torrent.files.length).to.equal(1)
|
||||
expect(torrent.files[0].path).match(/\.mp4$/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue