aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/video-imports.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/videos/video-imports.ts')
-rw-r--r--shared/extra-utils/videos/video-imports.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/video-imports.ts b/shared/extra-utils/videos/video-imports.ts
index d235181b0..6249e8a94 100644
--- a/shared/extra-utils/videos/video-imports.ts
+++ b/shared/extra-utils/videos/video-imports.ts
@@ -15,6 +15,10 @@ function getBadVideoUrl () {
15 return 'https://download.cpy.re/peertube/bad_video.mp4' 15 return 'https://download.cpy.re/peertube/bad_video.mp4'
16} 16}
17 17
18function getGoodVideoUrl () {
19 return 'https://download.cpy.re/peertube/good_video.mp4'
20}
21
18function importVideo (url: string, token: string, attributes: VideoImportCreate & { torrentfile?: string }, statusCodeExpected = 200) { 22function importVideo (url: string, token: string, attributes: VideoImportCreate & { torrentfile?: string }, statusCodeExpected = 200) {
19 const path = '/api/v1/videos/imports' 23 const path = '/api/v1/videos/imports'
20 24
@@ -53,5 +57,6 @@ export {
53 getYoutubeVideoUrl, 57 getYoutubeVideoUrl,
54 importVideo, 58 importVideo,
55 getMagnetURI, 59 getMagnetURI,
56 getMyVideoImports 60 getMyVideoImports,
61 getGoodVideoUrl
57} 62}