use yt-dlp
This commit is contained in:
parent
910cdbbb99
commit
1377a9dcfe
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -9,8 +9,8 @@
|
|||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you were forced to change the target frameworks, make sure to update the program path.
|
||||||
"program": "${workspaceFolder}/bin/Debug/net5.0/silverworker-discord.dll",
|
"program": "${workspaceFolder}/bin/Debug/net6.0/silverworker-discord.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
|
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
|
||||||
|
@ -14,7 +14,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";
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<RootNamespace>silverworker_discord</RootNamespace>
|
<RootNamespace>silverworker_discord</RootNamespace>
|
||||||
<RestoreSources>$(RestoreSources);../packages/nuget/;https://api.nuget.org/v3/index.json</RestoreSources>
|
<RestoreSources>https://thegreyn.jfrog.io/artifactory/api/nuget/adamrgrey-nuget;https://api.nuget.org/v3/index.json</RestoreSources>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
|
||||||
<PackageReference Include="qrcoder" Version="1.4.2" />
|
<PackageReference Include="qrcoder" Version="1.4.2" />
|
||||||
<PackageReference Include="silvermeddlists.franz" Version="0.0.7" />
|
<PackageReference Include="silvermeddlists.franz" Version="0.0.9" />
|
||||||
<PackageReference Include="youtubedlsharp" Version="0.3.1" />
|
<PackageReference Include="youtubedlsharp" Version="0.3.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user