From 1a327acbd049117409521363e593176d8673e2ed Mon Sep 17 00:00:00 2001 From: "Adam R. Grey" Date: Sun, 29 Aug 2021 00:27:40 -0400 Subject: [PATCH] configurable tiktok spot --- Program.cs | 2 +- appsettings.example.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 4839727..cf501df 100644 --- a/Program.cs +++ b/Program.cs @@ -139,7 +139,7 @@ namespace silverworker_discord var ytdl = new YoutubeDLSharp.YoutubeDL(); ytdl.YoutubeDLPath = config["ytdl"]; ytdl.FFmpegPath = "ffmpeg"; - ytdl.OutputFolder = "./"; + ytdl.OutputFolder = config["content_wasteland"]; var res = await ytdl.RunVideoDownload(link.ToString()); string path = res.Data; await channel.SendFileAsync(path); diff --git a/appsettings.example.json b/appsettings.example.json index 6cb7a89..f81dbbb 100644 --- a/appsettings.example.json +++ b/appsettings.example.json @@ -2,5 +2,6 @@ "token": "59 chars", "botChatterChannel": 0, "announcementChannel": 0, - "ytdl": "youtube-dl" + "ytdl": "youtube-dl", + "content_wasteland": "./" } \ No newline at end of file