diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-24 15:22:56 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-25 10:07:51 +0100 |
commit | ca5c612bfdd225433bcc6ace01c8024df3f674ba (patch) | |
tree | 1b722cc346c9079c65338f0792ce7bcd2a20f8a0 /shared/extra-utils/server/plugins.ts | |
parent | 5a547f69d5dc5867e253f7721513479c754b4f15 (diff) | |
download | PeerTube-ca5c612bfdd225433bcc6ace01c8024df3f674ba.tar.gz PeerTube-ca5c612bfdd225433bcc6ace01c8024df3f674ba.tar.zst PeerTube-ca5c612bfdd225433bcc6ace01c8024df3f674ba.zip |
Add live transcoding bit rate tests
Diffstat (limited to 'shared/extra-utils/server/plugins.ts')
-rw-r--r-- | shared/extra-utils/server/plugins.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/extra-utils/server/plugins.ts b/shared/extra-utils/server/plugins.ts index b6b5e3958..8f370f655 100644 --- a/shared/extra-utils/server/plugins.ts +++ b/shared/extra-utils/server/plugins.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' | ||
2 | import { PluginType } from '../../models/plugins/plugin.type' | ||
3 | import { PeertubePluginIndexList } from '../../models/plugins/peertube-plugin-index-list.model' | ||
4 | import { readJSON, writeJSON } from 'fs-extra' | 1 | import { readJSON, writeJSON } from 'fs-extra' |
5 | import { ServerInfo } from './servers' | ||
6 | import { root } from '../miscs/miscs' | ||
7 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { PeertubePluginIndexList } from '../../models/plugins/peertube-plugin-index-list.model' | ||
4 | import { PluginType } from '../../models/plugins/plugin.type' | ||
5 | import { buildServerDirectory, root } from '../miscs/miscs' | ||
6 | import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests' | ||
7 | import { ServerInfo } from './servers' | ||
8 | 8 | ||
9 | function listPlugins (parameters: { | 9 | function listPlugins (parameters: { |
10 | url: string | 10 | url: string |
@@ -216,7 +216,7 @@ function getPluginsCSS (url: string) { | |||
216 | } | 216 | } |
217 | 217 | ||
218 | function getPackageJSONPath (server: ServerInfo, npmName: string) { | 218 | function getPackageJSONPath (server: ServerInfo, npmName: string) { |
219 | return join(root(), 'test' + server.internalServerNumber, 'plugins', 'node_modules', npmName, 'package.json') | 219 | return buildServerDirectory(server, join('plugins', 'node_modules', npmName, 'package.json')) |
220 | } | 220 | } |
221 | 221 | ||
222 | function updatePluginPackageJSON (server: ServerInfo, npmName: string, json: any) { | 222 | function updatePluginPackageJSON (server: ServerInfo, npmName: string, json: any) { |