detiktokify uses ytdlp

This commit is contained in:
Adam R Grey 2022-01-16 20:52:45 -05:00
parent 00b588059d
commit 6cda86300e

View File

@ -17,7 +17,7 @@ namespace silverworker_discord
public static async void detiktokify(Uri link, SocketUserMessage message) public static async void detiktokify(Uri link, SocketUserMessage message)
{ {
var ytdl = new YoutubeDLSharp.YoutubeDL(); var ytdl = new YoutubeDLSharp.YoutubeDL();
ytdl.YoutubeDLPath = "youtube-dl"; ytdl.YoutubeDLPath = "yt-dlp";
ytdl.FFmpegPath = "ffmpeg"; ytdl.FFmpegPath = "ffmpeg";
ytdl.OutputFolder = ""; ytdl.OutputFolder = "";
ytdl.OutputFileTemplate = "tiktokbad.%(ext)s"; ytdl.OutputFileTemplate = "tiktokbad.%(ext)s";
@ -232,4 +232,4 @@ namespace silverworker_discord
await message.Channel.SendMessageAsync(piece1[r.Next(piece1.Count)] + piece2[r.Next(piece2.Count)]+ piece3[r.Next(piece3.Count)]+ piece4[r.Next(piece4.Count)]); await message.Channel.SendMessageAsync(piece1[r.Next(piece1.Count)] + piece2[r.Next(piece2.Count)]+ piece3[r.Next(piece3.Count)]+ piece4[r.Next(piece4.Count)]);
} }
} }
} }