38 lines
1.5 KiB
Markdown
38 lines
1.5 KiB
Markdown
# Tesses.YouTubeDownloader (2022)
|
|
|
|
[Website for app](https://tesses.net/apps/tytd/2022/)
|
|
|
|
Tesses.YouTubeDownloader.ExampleExtension uses [Return YouTube Dislikes](https://returnyoutubedislike.com/)
|
|
|
|
[How To Find Videos (When Downloaded)](docs/HowToFindVideos.md)
|
|
<br>
|
|
[Server Endpoints](docs/Server.md)
|
|
<br>
|
|
[Classes and Enums](docs/JsonAndEnum.md)
|
|
<br>
|
|
Please put your issues on my [GitHub](https://github.com/tesses50/tytd-2022)
|
|
<br> I disagree with [this](https://github.com/Tyrrrz/YoutubeExplode#terms-of-use) but I use this library anyway
|
|
|
|
# What this is known to work on
|
|
- Modern Linux/Windows/Mac (or any thing that can run .NET Standard 2.0+)
|
|
- Works on my Wii with [wii-linux-ngx](https://www.github.com/neagix/wii-linux-ngx) and [this guide](https://tesses.net/apps/tytd/2022/wii.php) (if it 404s its not complete yet)
|
|
|
|
# To Use It as a server
|
|
using Tesses.YouTubeDownloader.Server;
|
|
using Tesses.YouTubeDownloader;
|
|
...
|
|
TYTDCurrentDirectory currentDirectory=new TYTDCurrentDirectory(new HttpClient());
|
|
TYTDServer server=new TYTDServer(currentDirectory);
|
|
server.RootServer.Server=new StaticServer("WebSite");
|
|
HttpServerListener listener=new HttpServerListener(new System.Net.IPEndPoint(System.Net.IPAddress.Any,3252),server.InnerServer);
|
|
currentDirectory.StartLoop();
|
|
TYTDStorage.FFmpeg ="/usr/bin/ffmpeg";
|
|
Console.WriteLine("Almost Ready to Listen");
|
|
await listener.ListenAsync(CancellationToken.None);
|
|
|
|
Then:
|
|
|
|
dotnet add package Tesses.YouTubeDownloader.Server
|
|
|
|
# Happy downloading
|