AnimeDl 1.8.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package AnimeDl --version 1.8.8                
NuGet\Install-Package AnimeDl -Version 1.8.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AnimeDl" Version="1.8.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AnimeDl --version 1.8.8                
#r "nuget: AnimeDl, 1.8.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AnimeDl as a Cake Addin
#addin nuget:?package=AnimeDl&version=1.8.8

// Install AnimeDl as a Cake Tool
#tool nuget:?package=AnimeDl&version=1.8.8                

AnimeDl

Version Downloads <a href="https://discord.gg/mhxsSMy2Nf"><img src="https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white"></a>

AnimeDl scrapes animes from sites.

<br> <a href="https://www.buymeacoffee.com/jerry08"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=jerry08&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff" /></a> <br>

🌟STAR THIS REPOSITORY TO SUPPORT THE DEVELOPER AND ENCOURAGE THE DEVELOPMENT OF THE PROJECT!

<br>

Please do not attempt to upload AnimeDl or any of it's forks on Playstore or any other Android appstores on the internet. Doing so, may infringe their terms and conditions. This may result to legal action or immediate take-down of the app.

Official Discord Server

<p align="center"> <a href="https://discord.gg/mhxsSMy2Nf"> <img src="https://invidget.switchblade.xyz/mhxsSMy2Nf"> </a> </p>

  • Available Anime sources:-
SITE STATUS DOWNLOADS
Gogo WORKING YES
Zoro WORKING YES

Install

  • πŸ“¦ NuGet: dotnet add package AnimeDl

Usage

AnimeDl exposes its functionality through a single entry point β€” the AnimeClient class. Create an instance of this class and use the provided operations to send requests.

Searching

You can execute a search query and get its results by calling Search(...) or SearchAsync(...):

using AnimeDl;
using AnimeDl.Scrapers;

var client = new AnimeClient(AnimeSites.GogoAnime);

var animes = await client.SearchAsync("naruto");

Anime

Retrieving anime metadata

To retrieve the metadata associated with an anime, execute a search query as mentioned above:

using AnimeDl;
using AnimeDl.Scrapers;

var client = new AnimeClient(AnimeSites.GogoAnime);

var animes = await client.SearchAsync("naruto");

var title = animes[0].Title;

//More anime details
var animeInfo = await client.GetAnimeInfoAsync(animes[0].Id);
var image = animeInfo.Image;
var summary = animeInfo.Summary;

Episodes

Retrieving anime episodes and episode metadata
using AnimeDl;
using AnimeDl.Scrapers;

var client = new AnimeClient(AnimeSites.GogoAnime);

var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);

var description = episodes[0].Description;
var link = episodes[0].Link;

Video Servers

Retrieving an episode video servers
using AnimeDl;
using AnimeDl.Scrapers;

var client = new AnimeClient(AnimeSites.GogoAnime);

var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var servers = await client.GetVideoServersAsync(episodes[0].Id);

Videos

Retrieving video and metadata
using AnimeDl;
using AnimeDl.Scrapers;

var client = new AnimeClient(AnimeSites.GogoAnime);

var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var servers = await client.GetVideoServersAsync(episodes[0].Id);
var videos = await client.GetVideosAsync(servers[0]);

var videoUrl = videos[0].VideoUrl;
var headers = videos[0].Headers;
var resolution = videos[0].Resolution;
var format = videos[0].Format;
Retrieving aniskip metadata
using System.Linq;
using AnimeDl.Anilist;

var client = new AnilistClient();

var searchResults = await client.SearchAsync("ANIME", search: "chainsaw man");
var animes = searchResults?.Results.Where(x => x.IdMal is not null).ToList();
var media = await client.GetMediaDetailsAsync(animes![0]);

var episodeNum = 1;
var episodeDuration = 1524981 / 1000;

var timeskips = await client.Aniskip.GetAsync(media!.IdMal!.Value, episodeNum, episodeDuration);

var skipType = timeskips?[0].SkipType;
var startTime = timeskips?[0].Interval.StartTime;
var endTime = timeskips?[0].Interval.EndTime;
Downloading videos
using AnimeDl;
using AnimeDl.Scrapers;

var client = new AnimeClient(AnimeSites.GogoAnime);

var animes = await client.SearchAsync("naruto");
var episodes = await client.GetEpisodesAsync(animes[0].Id);
var servers = await client.GetVideoServersAsync(episodes[0].Id);
var videos = await client.GetVideosAsync(servers[0]);

//NB: Video format must be `Container`
await client.DownloadAsync(videos[0].VideoUrl, videos[0].Headers, fileName);

//Donwloading other formats
var metadataResources = await client.GetHlsStreamMetadatasAsync(videos[0].VideoUrl, videos[0].Headers);
var stream = await metadataResources[0].Stream;

await client.DownloadTsAsync(stream, videos[0].Headers, fileName);
//Or
await client.DownloadAllTsThenMergeAsync(stream, videos[0].Headers, fileName, maxParallelDownloads: 10);
//The method above will be faster
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.8.9 401 3/14/2023 1.8.9 is deprecated because it is no longer maintained.
1.8.8 263 3/13/2023
1.8.7 271 3/13/2023
1.8.6 236 3/13/2023
1.8.5 247 3/13/2023
1.8.4 298 2/28/2023
1.8.3 261 2/19/2023
1.8.2 275 2/7/2023
1.8.1 335 1/15/2023