diff options
Diffstat (limited to 'shared/utils/videos')
-rw-r--r-- | shared/utils/videos/video-abuses.ts | 2 | ||||
-rw-r--r-- | shared/utils/videos/video-captions.ts | 4 | ||||
-rw-r--r-- | shared/utils/videos/video-channels.ts | 2 | ||||
-rw-r--r-- | shared/utils/videos/video-comments.ts | 2 | ||||
-rw-r--r-- | shared/utils/videos/video-imports.ts | 3 | ||||
-rw-r--r-- | shared/utils/videos/videos.ts | 5 |
6 files changed, 10 insertions, 8 deletions
diff --git a/shared/utils/videos/video-abuses.ts b/shared/utils/videos/video-abuses.ts index 8be891a9b..7f011ec0f 100644 --- a/shared/utils/videos/video-abuses.ts +++ b/shared/utils/videos/video-abuses.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | import { VideoAbuseUpdate } from '../../models/videos/abuse/video-abuse-update.model' | 2 | import { VideoAbuseUpdate } from '../../models/videos/abuse/video-abuse-update.model' |
3 | import { makeDeleteRequest, makePutBodyRequest } from '..' | 3 | import { makeDeleteRequest, makePutBodyRequest } from '../requests/requests' |
4 | 4 | ||
5 | function reportVideoAbuse (url: string, token: string, videoId: number | string, reason: string, specialStatus = 200) { | 5 | function reportVideoAbuse (url: string, token: string, videoId: number | string, reason: string, specialStatus = 200) { |
6 | const path = '/api/v1/videos/' + videoId + '/abuse' | 6 | const path = '/api/v1/videos/' + videoId + '/abuse' |
diff --git a/shared/utils/videos/video-captions.ts b/shared/utils/videos/video-captions.ts index 41e52be07..8d67f617b 100644 --- a/shared/utils/videos/video-captions.ts +++ b/shared/utils/videos/video-captions.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { makeDeleteRequest, makeGetRequest } from '../' | 1 | import { makeDeleteRequest, makeGetRequest, makeUploadRequest } from '../requests/requests' |
2 | import { buildAbsoluteFixturePath, makeUploadRequest } from '../index' | ||
3 | import * as request from 'supertest' | 2 | import * as request from 'supertest' |
4 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import { buildAbsoluteFixturePath } from '../miscs/miscs' | ||
5 | 5 | ||
6 | const expect = chai.expect | 6 | const expect = chai.expect |
7 | 7 | ||
diff --git a/shared/utils/videos/video-channels.ts b/shared/utils/videos/video-channels.ts index 3d37f0e4c..3935c261e 100644 --- a/shared/utils/videos/video-channels.ts +++ b/shared/utils/videos/video-channels.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | import { VideoChannelCreate, VideoChannelUpdate } from '../../models/videos' | 2 | import { VideoChannelCreate, VideoChannelUpdate } from '../../models/videos' |
3 | import { updateAvatarRequest } from '../index' | 3 | import { updateAvatarRequest } from '../requests/requests' |
4 | 4 | ||
5 | function getVideoChannelsList (url: string, start: number, count: number, sort?: string) { | 5 | function getVideoChannelsList (url: string, start: number, count: number, sort?: string) { |
6 | const path = '/api/v1/video-channels' | 6 | const path = '/api/v1/video-channels' |
diff --git a/shared/utils/videos/video-comments.ts b/shared/utils/videos/video-comments.ts index 7d4cae364..0ebf69ced 100644 --- a/shared/utils/videos/video-comments.ts +++ b/shared/utils/videos/video-comments.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import * as request from 'supertest' | 1 | import * as request from 'supertest' |
2 | import { makeDeleteRequest } from '../' | 2 | import { makeDeleteRequest } from '../requests/requests' |
3 | 3 | ||
4 | function getVideoCommentThreads (url: string, videoId: number | string, start: number, count: number, sort?: string, token?: string) { | 4 | function getVideoCommentThreads (url: string, videoId: number | string, start: number, count: number, sort?: string, token?: string) { |
5 | const path = '/api/v1/videos/' + videoId + '/comment-threads' | 5 | const path = '/api/v1/videos/' + videoId + '/comment-threads' |
diff --git a/shared/utils/videos/video-imports.ts b/shared/utils/videos/video-imports.ts index bf5062cd1..3fa49b432 100644 --- a/shared/utils/videos/video-imports.ts +++ b/shared/utils/videos/video-imports.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | |||
1 | import { VideoImportCreate } from '../../models/videos' | 2 | import { VideoImportCreate } from '../../models/videos' |
2 | import { makeGetRequest, makeUploadRequest } from '..' | 3 | import { makeGetRequest, makeUploadRequest } from '../requests/requests' |
3 | 4 | ||
4 | function getYoutubeVideoUrl () { | 5 | function getYoutubeVideoUrl () { |
5 | return 'https://youtu.be/msX3jv1XdvM' | 6 | return 'https://youtu.be/msX3jv1XdvM' |
diff --git a/shared/utils/videos/videos.ts b/shared/utils/videos/videos.ts index b3206e566..1ab3e7c4b 100644 --- a/shared/utils/videos/videos.ts +++ b/shared/utils/videos/videos.ts | |||
@@ -16,9 +16,10 @@ import { | |||
16 | ServerInfo, | 16 | ServerInfo, |
17 | testImage | 17 | testImage |
18 | } from '../' | 18 | } from '../' |
19 | |||
19 | import { VideoDetails, VideoPrivacy } from '../../models/videos' | 20 | import { VideoDetails, VideoPrivacy } from '../../models/videos' |
20 | import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers' | 21 | import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers/constants' |
21 | import { dateIsValid, webtorrentAdd } from '../index' | 22 | import { dateIsValid, webtorrentAdd } from '../miscs/miscs' |
22 | 23 | ||
23 | type VideoAttributes = { | 24 | type VideoAttributes = { |
24 | name?: string | 25 | name?: string |