diff options
Diffstat (limited to 'server/controllers/api/videos/import.ts')
-rw-r--r-- | server/controllers/api/videos/import.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 7576e77e7..b12953630 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -175,7 +175,11 @@ async function addYoutubeDLImport (req: express.Request, res: express.Response) | |||
175 | const targetUrl = body.targetUrl | 175 | const targetUrl = body.targetUrl |
176 | const user = res.locals.oauth.token.User | 176 | const user = res.locals.oauth.token.User |
177 | 177 | ||
178 | const youtubeDL = new YoutubeDLWrapper(targetUrl, ServerConfigManager.Instance.getEnabledResolutions('vod')) | 178 | const youtubeDL = new YoutubeDLWrapper( |
179 | targetUrl, | ||
180 | ServerConfigManager.Instance.getEnabledResolutions('vod'), | ||
181 | CONFIG.TRANSCODING.ALWAYS_TRANSCODE_ORIGINAL_RESOLUTION | ||
182 | ) | ||
179 | 183 | ||
180 | // Get video infos | 184 | // Get video infos |
181 | let youtubeDLInfo: YoutubeDLInfo | 185 | let youtubeDLInfo: YoutubeDLInfo |