detiktoker should work
This commit is contained in:
parent
4cf83afab8
commit
fa48d9695f
@ -138,7 +138,8 @@ namespace silverworker_discord
|
|||||||
var ytdl = new YoutubeDLSharp.YoutubeDL();
|
var ytdl = new YoutubeDLSharp.YoutubeDL();
|
||||||
ytdl.YoutubeDLPath = config["ytdl"];
|
ytdl.YoutubeDLPath = config["ytdl"];
|
||||||
ytdl.FFmpegPath = "ffmpeg";
|
ytdl.FFmpegPath = "ffmpeg";
|
||||||
ytdl.OutputFolder = config["content_wasteland"];
|
ytdl.OutputFolder = "";
|
||||||
|
ytdl.OutputFileTemplate = "tiktokbad.%(ext)s";
|
||||||
var res = await ytdl.RunVideoDownload(link.ToString());
|
var res = await ytdl.RunVideoDownload(link.ToString());
|
||||||
string path = res.Data;
|
string path = res.Data;
|
||||||
await channel.SendFileAsync(path);
|
await channel.SendFileAsync(path);
|
||||||
|
@ -2,6 +2,5 @@
|
|||||||
"token": "59 chars",
|
"token": "59 chars",
|
||||||
"botChatterChannel": 0,
|
"botChatterChannel": 0,
|
||||||
"announcementChannel": 0,
|
"announcementChannel": 0,
|
||||||
"ytdl": "youtube-dl",
|
"ytdl": "youtube-dl"
|
||||||
"content_wasteland": "./"
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user