MovieFileLibrary 1.0.2

.NET Standard 1.0 .NET Framework 4.5.1
There is a newer version of this package available.
See the version list below for details.
dotnet add package MovieFileLibrary --version 1.0.2
NuGet\Install-Package MovieFileLibrary -Version 1.0.2
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="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MovieFileLibrary --version 1.0.2
#r "nuget: MovieFileLibrary, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=1.0.2

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

Movie File Library

Movie File Library is a simple C# library that helps you to get basic movie/series info from a file.

Target frameworks

  • .Net Standard 1.0
  • .Net Standard 2.0
  • .Net Framework 4.5.1

How to use

// You should specify a Detect Method
// Detect Method is the way this library gets info from a movie file
// If you don't like the default method you can write your own
// If you written one it would be awasome if you share it on GitHub
MovieFileLibrary.DefaultMethod method = new MovieFileLibrary.DefaultMethod();

// Create Movie Detector Library object
// This class helps you to detect movie based on a Method
MovieFileLibrary.MovieDetector movieDetector = new MovieFileLibrary.MovieDetector(method);

// Define a test file path
string filePath = "D:\\Monty Python's Flying Circus\\Season 1\\Monty.Pythons.Flying.Circus.S03.E04.avi";

// Call GetInfo to process file name and return a result
MovieFileLibrary.MovieFile movieFile = movieDetector.GetInfo(filePath);

// Print Results
Console.WriteLine("Title: {0}", movieFile.Title);
Console.WriteLine("Year: {0}", movieFile.Year);
    
if(movieFile.IsSeries)
{
    Console.WriteLine("IsSeries: {0}", movieFile.IsSeries);
    Console.WriteLine("Season: {0}", movieFile.Season);
    Console.WriteLine("Episode: {0}", movieFile.Episode);
}

Console.WriteLine("FilePath: {0}", movieFile.FilePath);
Console.WriteLine("Success: {0}", movieFile.Success);   

// Wait for user to press a key to exit
Console.WriteLine("Press Any Key To Exit...");
Console.ReadKey();

Result:

Title: Monty Pythons Flying Circus
Year: null
IsSeries: True
Season: 3
Episode: 4
FilePath: D:\Monty Python's Flying Circus\Season 1\Monty.Pythons.Flying.Circus.S03.E04.avi
Success: True

Check out GitHub repository to learn more.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETStandard 1.0

  • .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.0.0-preview.2 62 7/7/2022
3.0.0-preview.1 115 8/9/2021
2.0.0 305 3/8/2021
2.0.0-preview.1 188 12/23/2020
1.2.0 295 11/11/2020
1.1.2 288 10/26/2020
1.1.1 325 10/7/2020
1.1.1-alpha.2 176 8/26/2020
1.1.1-alpha.1 215 4/6/2020
1.1.0 387 3/24/2020
1.1.0-beta.2 251 3/7/2020
1.1.0-beta.1 216 12/20/2019
1.0.4 370 11/14/2019
1.0.4-alpha.1 221 9/25/2019
1.0.3 459 4/27/2019
1.0.2 456 3/13/2019
1.0.1 533 2/15/2019

Change Name property to Title to avoid confusion.