diff options
-rw-r--r-- | server/tools/import-videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/import-videos.ts b/server/tools/import-videos.ts index 812600f8b..3ff194c83 100644 --- a/server/tools/import-videos.ts +++ b/server/tools/import-videos.ts | |||
@@ -7,7 +7,7 @@ import * as youtubeDL from 'youtube-dl' | |||
7 | import { VideoPrivacy } from '../../shared/models/videos' | 7 | import { VideoPrivacy } from '../../shared/models/videos' |
8 | import { doRequestAndSaveToFile } from '../helpers/requests' | 8 | import { doRequestAndSaveToFile } from '../helpers/requests' |
9 | import { CONSTRAINTS_FIELDS } from '../initializers' | 9 | import { CONSTRAINTS_FIELDS } from '../initializers' |
10 | import { getClient, getVideoCategories, login, searchVideo, uploadVideo } from '../tests/utils' | 10 | import { getClient, getVideoCategories, login, searchVideoWithSort, uploadVideo } from '../tests/utils' |
11 | import { truncate } from 'lodash' | 11 | import { truncate } from 'lodash' |
12 | import * as prompt from 'prompt' | 12 | import * as prompt from 'prompt' |
13 | import { remove } from 'fs-extra' | 13 | import { remove } from 'fs-extra' |
@@ -113,7 +113,7 @@ function processVideo (info: any, languageCode: string) { | |||
113 | const videoInfo = await fetchObject(info) | 113 | const videoInfo = await fetchObject(info) |
114 | if (program['verbose']) console.log('Fetched object.', videoInfo) | 114 | if (program['verbose']) console.log('Fetched object.', videoInfo) |
115 | 115 | ||
116 | const result = await searchVideo(program['url'], videoInfo.title) | 116 | const result = await searchVideoWithSort(program['url'], videoInfo.title, '-match') |
117 | 117 | ||
118 | console.log('############################################################\n') | 118 | console.log('############################################################\n') |
119 | 119 | ||