From 89f00a2fcf6b8d07d00cdf36c702f239b0bbe9a2 Mon Sep 17 00:00:00 2001
From: Supositware <sup@libtar.de>
Date: Sun, 4 Feb 2024 03:31:09 +0100
Subject: [PATCH] use ytdlpMaxResolution instead of the temporary hardcoded
 value

---
 utils/videos.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/videos.js b/utils/videos.js
index d68ae4d..d6eacf2 100644
--- a/utils/videos.js
+++ b/utils/videos.js
@@ -1,7 +1,6 @@
 import os from 'node:os';
 import { execFile } from 'node:child_process';
-const { NODE_ENV } = process.env;
-const ytdlpMaxResolution = 2160;
+const { NODE_ENV, ytdlpMaxResolution } = process.env;
 
 export default {
 	downloadVideo,