X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fvideos%2Fvideo-imports.ts;h=6249e8a94a29cf50412333c723ee48b703c4c621;hb=af4ae64f6faf38f8179f2e07d3cd4ad60006be92;hp=d235181b0b799643412008ea06ea6ba570e20c18;hpb=2158ac90341dc3fcae958540de65032da25c8d6e;p=github%2FChocobozzz%2FPeerTube.git 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 () { return 'https://download.cpy.re/peertube/bad_video.mp4' } +function getGoodVideoUrl () { + return 'https://download.cpy.re/peertube/good_video.mp4' +} + function importVideo (url: string, token: string, attributes: VideoImportCreate & { torrentfile?: string }, statusCodeExpected = 200) { const path = '/api/v1/videos/imports' @@ -53,5 +57,6 @@ export { getYoutubeVideoUrl, importVideo, getMagnetURI, - getMyVideoImports + getMyVideoImports, + getGoodVideoUrl }