use ytdlpMaxResolution instead of the temporary hardcoded value

This commit is contained in:
Supositware 2024-02-04 03:31:09 +01:00
parent e6dca692ed
commit 89f00a2fcf

View file

@ -1,7 +1,6 @@
import os from 'node:os'; import os from 'node:os';
import { execFile } from 'node:child_process'; import { execFile } from 'node:child_process';
const { NODE_ENV } = process.env; const { NODE_ENV, ytdlpMaxResolution } = process.env;
const ytdlpMaxResolution = 2160;
export default { export default {
downloadVideo, downloadVideo,