From fce9bce308be66839bf7adadef6a9aa34f5746c1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 6 Sep 2024 10:01:02 +0200 Subject: [PATCH] add nitro basic --- README.md | 3 ++- src/scripts/renderer.ts | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 175327b..75f4889 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Tool for sharing video to Discord. ``` > - If you have Discord Nitro: add `/nitro` flag when running DSR. +> - If you have Discord Nitro Basic: add `/nitrobasic` flag when running DSR. > - If you have an NVidia GPU with NVenc: add `/nvenc` flag when running DSR. ## More info @@ -23,7 +24,7 @@ Tool for sharing video to Discord. - [x] KISS interface - [x] Support drag&drop into the icon - [x] Keep the video under 25mb (discord limitation) - - [x] NVenc support + - [x] Basic NVenc support - [x] If already under the limit, the file won't be compressed - [x] Nitro suppport via `/nitro` flag - [x] Merge audio files into one track when recorded with system audio and microphone diff --git a/src/scripts/renderer.ts b/src/scripts/renderer.ts index 8c4e82f..9772a13 100644 --- a/src/scripts/renderer.ts +++ b/src/scripts/renderer.ts @@ -56,13 +56,16 @@ const getFiles = async () => { /** Returns maximum allowed size for files in MB */ const fetchMaxSize = async () => { const argv = await internals.argv(); - if (argv.includes("/nitro")) { + if (argv.includes("/nitrobasic")) { + // Nitro Basic user + return 50; + } else if (argv.includes("/nitro")) { // Nitro user return 500; + } else { + // Free user + return 25; } - - // Free user - return 25; }; /** Either replace the message, or add some info */