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