DavisSoftwareConsulting.ParseTorrentName 1.0.1

dotnet add package DavisSoftwareConsulting.ParseTorrentName --version 1.0.1
NuGet\Install-Package DavisSoftwareConsulting.ParseTorrentName -Version 1.0.1
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="DavisSoftwareConsulting.ParseTorrentName" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DavisSoftwareConsulting.ParseTorrentName --version 1.0.1
#r "nuget: DavisSoftwareConsulting.ParseTorrentName, 1.0.1"
#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 DavisSoftwareConsulting.ParseTorrentName as a Cake Addin
#addin nuget:?package=DavisSoftwareConsulting.ParseTorrentName&version=1.0.1

// Install DavisSoftwareConsulting.ParseTorrentName as a Cake Tool
#tool nuget:?package=DavisSoftwareConsulting.ParseTorrentName&version=1.0.1

DSC.ParseTorrentName

A .NET port of celement-escolano's parse-torrent-title!

This package is used to help you extract information from a torrent's file name. You can extract information such as title, resolution, audio, language, etc.

There is also support for registering your own handler(s) to the parser to extract more information!

Installation

Use the following command to install ParseTorrentName, or install it from the NuGet Package Manager within Visual Studio.

Install-Package DSC.ParseTorrentName

Usage

Usage of the library is relatively straightforward. You can call Parser.Default.Parse(fileName) to get started right away! This will return a collection that with the information that was able to be extracted from the file name.

var fileDetails = DSC.ParseTorrentName.Parser.Default.Parse("Color.Of.Night.Unrated.DC.VostFR.BRrip.x264");
// unrated = True
// source = brrip
// codec = x264
// language = vostfr
// title = Color Of Night

Example

An example for getting details about a file name:

var fileDetails = Parser.Default.Parse("2019 After The Fall Of New York 1983 REMASTERED BDRip x264-GHOULS");
var title = fileDetails[DefaultHandlerNames.Title]; // 2019 After The Fall Of New York
var source = fileDetails[DefaultHandlerNames.Source]; // bdrip
var year = fileDetails[DefaultHandlerNames.Year]; // 1983
var codec = fileDetails[DefaultHandlerNames.Codec]; // x264
var remastered = fileDetails[DefaultHandlerNames.Remastered]; // True
var group = fileDetails[DefaultHandlerNames.Group]; // GHOULS

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 netcoreapp3.1 is compatible. 
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.0.1 179 3/7/2023
1.0.0 144 3/7/2023