From 15b34c1c5e1496eb846a8bb4cba741ac7354a3ea Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sat, 19 Nov 2022 00:20:35 -0500 Subject: [PATCH 1/2] Change from -m syntax to , update gitignore --- .gitignore | 1 + src/ChatDownloader.c | 2 +- src/ChatRender.c | 2 +- src/ClipDownloader.c | 2 +- src/VodDownloader.c | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4009bb4..517f350 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ Dockerfile debpkg/ build/ .vscode +.vs extra/ diff --git a/src/ChatDownloader.c b/src/ChatDownloader.c index 5666f98..ad39270 100644 --- a/src/ChatDownloader.c +++ b/src/ChatDownloader.c @@ -239,7 +239,7 @@ static void downloadBtnClicked(uiButton *b, void *data) { string *cmd = malloc(sizeof(string)); *cmd = (string){malloc(sizeof(char) * 100), 0, 100}; - concat(cmd, 4, getBinaryPath(), " -m ChatDownload -u '", chatOptions->id, "'"); + concat(cmd, 4, getBinaryPath(), " chatdownload -u '", chatOptions->id, "'"); if (uiCheckboxChecked(chatOptions->cropStartCheck)) { char seconds[12]; diff --git a/src/ChatRender.c b/src/ChatRender.c index 7e325fb..d0428ab 100644 --- a/src/ChatRender.c +++ b/src/ChatRender.c @@ -232,7 +232,7 @@ static void renderBtnClicked(uiButton *b, void *args) { string *cmd = malloc(sizeof(string)); *cmd = (string){malloc(sizeof(char) * 100), 0, 100}; - concat(cmd, 4, getBinaryPath(), " -m ChatRender -i \"", chatFile, "\" "); + concat(cmd, 4, getBinaryPath(), " chatrender -i \"", chatFile, "\" "); concat(cmd, 2, " --temp-path ", getJson(configJson, "tempFolder")->valuestring); uiFontDescriptor font; diff --git a/src/ClipDownloader.c b/src/ClipDownloader.c index 13467a9..87ce3dc 100644 --- a/src/ClipDownloader.c +++ b/src/ClipDownloader.c @@ -153,7 +153,7 @@ static void downloadBtnClicked(uiButton *b, void *data) { string *cmd = malloc(sizeof(string)); *cmd = (string){malloc(sizeof(char) * 100), 0, 100}; - concat(cmd, 3, getBinaryPath(), " -m ClipDownload -u ", clipOptions->id); + concat(cmd, 3, getBinaryPath(), " clipdownload -u ", clipOptions->id); concat(cmd, 2, " --temp-path ", getJson(configJson, "tempFolder")->valuestring); concat(cmd, 2, " -q ", qualityArray[uiComboboxSelected(clipOptions->qualities)]); concat(cmd, 3, " -o ", fileName, " 2>&1"); diff --git a/src/VodDownloader.c b/src/VodDownloader.c index f1b5ce8..85b12cc 100644 --- a/src/VodDownloader.c +++ b/src/VodDownloader.c @@ -221,7 +221,7 @@ static void downloadBtnClicked(uiButton *b, void *data) { string *cmd = malloc(sizeof(string)); *cmd = (string){malloc(sizeof(char) * 100), 0, 100}; - concat(cmd, 4, getBinaryPath(), " -m VideoDownload -u '", vodOptions->id, "'"); + concat(cmd, 4, getBinaryPath(), " videodownload -u '", vodOptions->id, "'"); concat(cmd, 2, " --temp-path ", getJson(configJson, "tempFolder")->valuestring); if (uiCheckboxChecked(vodOptions->cropStartCheck)) { From fedf44092a42d3f26fb6f8f5a570261c6094a8c1 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sun, 20 Nov 2022 03:48:13 -0500 Subject: [PATCH 2/2] Use char arg for embedding emotes --- src/ChatDownloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatDownloader.c b/src/ChatDownloader.c index ad39270..09305b0 100644 --- a/src/ChatDownloader.c +++ b/src/ChatDownloader.c @@ -258,7 +258,7 @@ static void downloadBtnClicked(uiButton *b, void *data) { } if (uiCheckboxChecked(chatOptions->embedEmotes)) { - concat(cmd, 1, " --embed-emotes "); + concat(cmd, 1, " -E "); } concat(cmd, 2, " --temp-path ", getJson(configJson, "tempFolder")->valuestring);