From fa48d9695f115a8a9dee1f31c3a4447d0cdc615a Mon Sep 17 00:00:00 2001 From: "Adam R. Grey" Date: Sun, 29 Aug 2021 05:00:46 -0400 Subject: [PATCH] detiktoker should work --- Program.cs | 3 ++- appsettings.example.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index b18b141..98d1c17 100644 --- a/Program.cs +++ b/Program.cs @@ -138,7 +138,8 @@ namespace silverworker_discord var ytdl = new YoutubeDLSharp.YoutubeDL(); ytdl.YoutubeDLPath = config["ytdl"]; ytdl.FFmpegPath = "ffmpeg"; - ytdl.OutputFolder = config["content_wasteland"]; + ytdl.OutputFolder = ""; + ytdl.OutputFileTemplate = "tiktokbad.%(ext)s"; 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 f81dbbb..6cb7a89 100644 --- a/appsettings.example.json +++ b/appsettings.example.json @@ -2,6 +2,5 @@ "token": "59 chars", "botChatterChannel": 0, "announcementChannel": 0, - "ytdl": "youtube-dl", - "content_wasteland": "./" + "ytdl": "youtube-dl" } \ No newline at end of file