mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-02 02:44:41 +00:00
Add Exporter class for MediaInfo integration
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using MediaInfoLib;
|
||||
using System.ComponentModel.Composition;
|
||||
|
||||
namespace QuickLook.Plugin.MediaInfoViewer;
|
||||
|
||||
[Export]
|
||||
public static class Exporter
|
||||
{
|
||||
public static MediaInfo Open(string path)
|
||||
{
|
||||
MediaInfo lib = new MediaInfo()
|
||||
.WithOpen(path);
|
||||
|
||||
return lib;
|
||||
}
|
||||
}
|
@@ -66,6 +66,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System.ComponentModel.Composition" />
|
||||
<PackageReference Include="MediaInfoDLL" Version="25.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
Reference in New Issue
Block a user