FileListSharp 3.0.0
dotnet add package FileListSharp --version 3.0.0
NuGet\Install-Package FileListSharp -Version 3.0.0
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="FileListSharp" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FileListSharp --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FileListSharp, 3.0.0"
#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 FileListSharp as a Cake Addin #addin nuget:?package=FileListSharp&version=3.0.0 // Install FileListSharp as a Cake Tool #tool nuget:?package=FileListSharp&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
A simple FileList wrapper made for .NET
⚠️ Important to know: FileList.io's API has a rate limit of 150 requests an hour, so use with caution! When the rate limit is hit the library will throw an exception.
Install from NuGet
Usage
FileListSharp uses builders for your convenience! These are FileListSearchParams and FileListLatestParams in particular.
Usage example:
using FileListSharp;
using FileListSharp.Builders;
var flClient = new FileList("username", "passkey");
var searchParams = new FileListSearchParams()
.Type("name")
.Query("Name of a show")
// Everything below is optional
.Categories([21])
.Moderated(false)
.Internal(false)
.DoubleUp(false)
.Season(1)
.Episode(5)
.FreeLeech(true);
var searchedList = await flClient.SearchAsync(searchParams);
if (searchedList.Count > 0)
{
Console.WriteLine($"Here's the first result for the torrent you searched for: ${searchedList.First()}");
}
var latestParams = new FileListLatestParams()
// All are optional
.Imdb("tt14527626")
.Limit(20)
.Categories([21, 20]);
var latest = (await flClient.LatestAsync(latestParams))!.First();
Console.WriteLine($"Just looked up torrent {latest.Name} with the ID of {latest.Id}, size of {latest.Size/1024/1024/1024}GB, uploaded on {latest.UploadDate}. It has {latest.Seeders} seeders and {latest.Leechers} leechers. Is it freeleech? {latest.FreeLeech == 1}");
Your passkey can be obtained from here<br> Category IDs can be found here
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.