MovieFileLibrary 3.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MovieFileLibrary --version 3.0.0                
NuGet\Install-Package MovieFileLibrary -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="MovieFileLibrary" Version="3.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MovieFileLibrary --version 3.0.0                
#r "nuget: MovieFileLibrary, 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 MovieFileLibrary as a Cake Addin
#addin nuget:?package=MovieFileLibrary&version=3.0.0

// Install MovieFileLibrary as a Cake Tool
#tool nuget:?package=MovieFileLibrary&version=3.0.0                

MovieFileLibrary

A dotnet library for extracting basic information from a movie file name.

NuGet Version NuGet Downloads

Installing

You can install this package via the Package Manager Console:

Install-Package MovieFileLibrary

How to use

Create a new instance of the MovieDetector class:

// using MovieFileLibrary;
var detector = new MovieDetector();

Movies

You can get the Title and Year of a movie via the GetInfo method:

var movieFile = detector.GetInfo("D:\\Oppenheimer.2023.1080p.mkv");

// Title: Oppenheimer
// Year: 2023

Series

You can also get the Season and Episode of a tv show:

var movieFile = detector.GetInfo("D:\\Frasier.S06E22.1080p.mp4");

// Title: Frasier
// Year: null
// IsSeries: True
// Season: 6
// Episode: 22

IMDb

You can also get the ImdbId of a movie:

var movieFile = detector.GetInfo("D:\\Amelie.2001.1080p.{imdb-tt0211915}.mkv");

// Title: Amelie
// Year: 2001
// ImdbId: tt0211915

Other styles are also supported:

var movieFile = detector.GetInfo("D:\\No.Time.to.Die.2021.1080p.[imdbid-tt2382320].mkv");

// Title: No Time to Die
// Year: 2021
// ImdbId: tt2382320

More Examples

Please see the demo project for more examples.

Changelog

Please visit the releases for more information.

License

This project is licensed under the MIT License.

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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  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.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.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.

Version Downloads Last updated
3.1.0-preview.1 95 3/31/2024
3.0.0 197 3/13/2024
3.0.0-preview.3 173 11/24/2023
3.0.0-preview.2 176 7/7/2022
3.0.0-preview.1 162 8/9/2021
2.0.0 458 3/8/2021
2.0.0-preview.1 236 12/23/2020
1.2.0 428 11/11/2020
1.1.2 421 10/26/2020
1.1.1 458 10/7/2020
1.1.1-alpha.2 230 8/26/2020
1.1.1-alpha.1 269 4/6/2020
1.1.0 511 3/24/2020
1.1.0-beta.2 300 3/7/2020
1.1.0-beta.1 266 12/20/2019
1.0.4 488 11/14/2019
1.0.4-alpha.1 274 9/25/2019
1.0.3 574 4/27/2019
1.0.2 577 3/13/2019
1.0.1 656 2/15/2019