add nitro basic

This commit is contained in:
Mylloon 2024-09-06 10:01:02 +02:00
parent 0ed6407315
commit fce9bce308
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 9 additions and 5 deletions

View file

@ -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: 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. > - If you have an NVidia GPU with NVenc: add `/nvenc` flag when running DSR.
## More info ## More info
@ -23,7 +24,7 @@ Tool for sharing video to Discord.
- [x] KISS interface - [x] KISS interface
- [x] Support drag&drop into the icon - [x] Support drag&drop into the icon
- [x] Keep the video under 25mb (discord limitation) - [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] If already under the limit, the file won't be compressed
- [x] Nitro suppport via `/nitro` flag - [x] Nitro suppport via `/nitro` flag
- [x] Merge audio files into one track when recorded with system audio and microphone - [x] Merge audio files into one track when recorded with system audio and microphone

View file

@ -56,13 +56,16 @@ const getFiles = async () => {
/** Returns maximum allowed size for files in MB */ /** Returns maximum allowed size for files in MB */
const fetchMaxSize = async () => { const fetchMaxSize = async () => {
const argv = await internals.argv(); 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 // Nitro user
return 500; return 500;
} } else {
// Free user // Free user
return 25; return 25;
}
}; };
/** Either replace the message, or add some info */ /** Either replace the message, or add some info */