aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-16 17:00:46 +0100
committerChocobozzz <me@florianbigard.com>2021-12-16 17:00:46 +0100
commit754c52b9b998a825fd830d5ac527a67e0eefeb9a (patch)
tree05c914b34bdc3524ad74a5cb86a834d86663d8be /server/tests/fixtures
parent2e9c7877eb3a3c5d64cc5c3383f0a7c0b51f5481 (diff)
downloadPeerTube-754c52b9b998a825fd830d5ac527a67e0eefeb9a.tar.gz
PeerTube-754c52b9b998a825fd830d5ac527a67e0eefeb9a.tar.zst
PeerTube-754c52b9b998a825fd830d5ac527a67e0eefeb9a.zip
Add ffprobe helper
Diffstat (limited to 'server/tests/fixtures')
-rw-r--r--server/tests/fixtures/peertube-plugin-test-four/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-four/main.js b/server/tests/fixtures/peertube-plugin-test-four/main.js
index edbb883e2..bff42ff40 100644
--- a/server/tests/fixtures/peertube-plugin-test-four/main.js
+++ b/server/tests/fixtures/peertube-plugin-test-four/main.js
@@ -111,6 +111,13 @@ async function register ({
111 111
112 return res.json(details) 112 return res.json(details)
113 }) 113 })
114
115 router.get('/ffprobe', async (req, res) => {
116 const result = await peertubeHelpers.videos.ffprobe(req.query.path)
117 if (!result) return res.sendStatus(404)
118
119 return res.json(result)
120 })
114 } 121 }
115 122
116} 123}