aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/peertube-auth.ts2
-rw-r--r--server/tools/peertube-import-videos.ts2
-rw-r--r--server/tools/peertube-repl.ts5
3 files changed, 3 insertions, 6 deletions
diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts
index 6b486e575..c1a804f83 100644
--- a/server/tools/peertube-auth.ts
+++ b/server/tools/peertube-auth.ts
@@ -133,7 +133,7 @@ program
133 .description('set an existing entry as default') 133 .description('set an existing entry as default')
134 .action(async url => { 134 .action(async url => {
135 const settings = await getSettings() 135 const settings = await getSettings()
136 const instanceExists = settings.remotes.indexOf(url) !== -1 136 const instanceExists = settings.remotes.includes(url)
137 137
138 if (instanceExists) { 138 if (instanceExists) {
139 settings.default = settings.remotes.indexOf(url) 139 settings.default = settings.remotes.indexOf(url)
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts
index 3fb9979df..7f3b58bba 100644
--- a/server/tools/peertube-import-videos.ts
+++ b/server/tools/peertube-import-videos.ts
@@ -274,7 +274,7 @@ async function getCategory (categories: string[], url: string) {
274function getLicence (licence: string) { 274function getLicence (licence: string) {
275 if (!licence) return undefined 275 if (!licence) return undefined
276 276
277 if (licence.indexOf('Creative Commons Attribution licence') !== -1) return 1 277 if (licence.includes('Creative Commons Attribution licence')) return 1
278 278
279 return undefined 279 return undefined
280} 280}
diff --git a/server/tools/peertube-repl.ts b/server/tools/peertube-repl.ts
index 7c936ae0d..ecbba8b0b 100644
--- a/server/tools/peertube-repl.ts
+++ b/server/tools/peertube-repl.ts
@@ -2,10 +2,7 @@ import { registerTSPaths } from '../helpers/register-ts-paths'
2import * as repl from 'repl' 2import * as repl from 'repl'
3import * as path from 'path' 3import * as path from 'path'
4import * as _ from 'lodash' 4import * as _ from 'lodash'
5import * as uuidv1 from 'uuid/v1' 5import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid'
6import * as uuidv3 from 'uuid/v3'
7import * as uuidv4 from 'uuid/v4'
8import * as uuidv5 from 'uuid/v5'
9import * as Sequelize from 'sequelize' 6import * as Sequelize from 'sequelize'
10import * as YoutubeDL from 'youtube-dl' 7import * as YoutubeDL from 'youtube-dl'
11 8