Skip to content

Commit

Permalink
update binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniachi committed Feb 20, 2024
1 parent 2b24b7d commit 494fd9d
Show file tree
Hide file tree
Showing 21 changed files with 72 additions and 21 deletions.
Binary file modified Plugins Store/Totoro.Plugins.MediaDetection.Generic.dll
Binary file not shown.
Binary file modified Plugins Store/Totoro.Plugins.MediaDetection.MpcHc.dll
Binary file not shown.
Binary file modified Plugins Store/Totoro.Plugins.MediaDetection.Vlc.dll
Binary file not shown.
Binary file modified Plugins Store/Totoro.Plugins.MediaDetection.Win11MediaPlayer.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
using Totoro.Plugins.Options;
using System.ComponentModel;
using Totoro.Plugins.Options;

namespace Totoro.Plugins.MediaDetection.MpcHc;

public class Config : ConfigObject
{
[DisplayName("Path")]
[Description("Path to executable")]
[Glyph(Glyphs.File)]
public string FileName { get; set; } = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"MPC-HC\mpc-hc64.exe");

[Glyph(Glyphs.Website)]
public string Host { get; set; } = "127.0.0.1";

[Glyph(Glyphs.Port)]
[Description("View > Options > Web Interface > Listen on port")]
public int Port { get; set; } = 13579;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public override PluginInfo GetInfo()
Name = "mpc-hc64",
DisplayName = "MPC-HC",
Description = "",
Version = Assembly.GetExecutingAssembly().GetName().Version!
Version = Assembly.GetExecutingAssembly().GetName().Version!,
Icon = typeof(Plugin).Assembly.GetManifestResourceStream("Totoro.Plugins.MediaDetection.MpcHc.mpc-hc-logo.png"),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<AppendRuntimeIdentifierToOutputPath Condition="$(Configuration) == Release">false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="mpc-hc-logo.png" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Totoro.Plugins.MediaDetection\Totoro.Plugins.MediaDetection.csproj" />
</ItemGroup>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
using Totoro.Plugins.Options;
using System.ComponentModel;
using Totoro.Plugins.Options;

namespace Totoro.Plugins.MediaDetection.Generic;

public class MpvConfig : ConfigObject
{
[DisplayName("Path")]
[Description("Path to executable")]
[Glyph(Glyphs.File)]
public string FileName { get; set; } = @"";
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public override PluginInfo GetInfo()
Name = "mpv",
DisplayName = "MPV",
Description = "",
Version = Assembly.GetExecutingAssembly().GetName().Version!
Version = Assembly.GetExecutingAssembly().GetName().Version!,
Icon = typeof(MpvPlugin).Assembly.GetManifestResourceStream("Totoro.Plugins.MediaDetection.Generic.mpv-icon.png"),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>x64</Platforms>
<Version>1.4</Version>
<Version>1.5</Version>
<OutputPath Condition="$(Configuration) == Release">..\..\..\Plugins Store\</OutputPath>
<AppendTargetFrameworkToOutputPath Condition="$(Configuration) == Release">false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath Condition="$(Configuration) == Release">false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="mpv-icon.png" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Totoro.Plugins.MediaDetection\Totoro.Plugins.MediaDetection.csproj" />
</ItemGroup>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.ComponentModel;
using Totoro.Plugins.Options;

namespace Totoro.Plugins.MediaDetection.Vlc;

public class Config : ConfigObject
{
[DisplayName("Path")]
[Description("Path to executable")]
[Glyph(Glyphs.File)]
public string FileName { get; set; } = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"VideoLAN\VLC\vlc.exe");

[Glyph(Glyphs.Website)]
[Description("Enable web interface Preferences > Interface > Main Interfaces > Web Interface")]
public string Host { get; set; } = "127.0.0.1";

[Glyph(Glyphs.Port)]
public int Port { get; set; } = 8080;

[Glyph(Glyphs.Password)]
[Description("Password set in Preferences > Interface > Main Interfaces > Lua > Lua HTTP password")]
public string Password { get; set; } = "";
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Reflection;
using Totoro.Plugins.Contracts;
using Totoro.Plugins.MediaDetection.Contracts;
using Totoro.Plugins.Options;

namespace Totoro.Plugins.MediaDetection.Vlc;

Expand All @@ -16,15 +15,8 @@ public override PluginInfo GetInfo()
Name = "vlc",
DisplayName = "VLC Media Player",
Description = "",
Version = Assembly.GetExecutingAssembly().GetName().Version!
Version = Assembly.GetExecutingAssembly().GetName().Version!,
Icon = typeof(Plugin).Assembly.GetManifestResourceStream("Totoro.Plugins.MediaDetection.Vlc.vlc_logo.png"),
};
}
}

public class Config : ConfigObject
{
public string FileName { get; set; } = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"VideoLAN\VLC\vlc.exe");
public string Host { get; set; } = "127.0.0.1";
public int Port { get; set; } = 8080;
public string Password { get; set; } = "password";
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>x64</Platforms>
<Version>1.4</Version>
<Version>1.5</Version>
<OutputPath Condition="$(Configuration) == Release">..\..\..\Plugins Store\</OutputPath>
<AppendTargetFrameworkToOutputPath Condition="$(Configuration) == Release">false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath Condition="$(Configuration) == Release">false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="vlc_logo.png" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Totoro.Plugins.MediaDetection\Totoro.Plugins.MediaDetection.csproj" />
</ItemGroup>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public PluginInfo GetInfo()
Name = "Microsoft.Media.Player",
DisplayName = "Windows Media Player",
Description = "Default Windows 11 Media Player",
Version = Assembly.GetExecutingAssembly().GetName().Version!
Version = Assembly.GetExecutingAssembly().GetName().Version!,
Icon = typeof(Plugin).Assembly.GetManifestResourceStream("Totoro.Plugins.MediaDetection.Win11MediaPlayer.wmp-icon.png"),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>x64</Platforms>
<Version>1.3</Version>
<Version>1.4</Version>
<OutputPath Condition="$(Configuration) == Release">..\..\..\Plugins Store\</OutputPath>
<AppendTargetFrameworkToOutputPath Condition="$(Configuration) == Release">false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath Condition="$(Configuration) == Release">false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="wmp-icon.png" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Totoro.Plugins.MediaDetection\Totoro.Plugins.MediaDetection.csproj" />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions Totoro.Plugins/Options/Glyphs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ public class Glyphs
public const string Sort = "\uE8CB";
public const string SortDirection = "\uF090";
public const string StreamType = "\uF2B7";
public const string File = "\uEC50";
public const string Password = "\uE9A8";
public const string Website = "\uEB41";
public const string Port = "\uF594";
}
6 changes: 3 additions & 3 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@
"MediaDetection": [
{
"DisplayName": "Vlc",
"Version": "1.4.0.0",
"Version": "1.5.0.0",
"FileName": "Totoro.Plugins.MediaDetection.Vlc.dll"
},
{
"DisplayName": "Window 11 Media Player",
"Version": "1.3.0.0",
"Version": "1.4.0.0",
"FileName": "Totoro.Plugins.MediaDetection.Win11MediaPlayer.dll"
},
{
"DisplayName": "General Purpose",
"Version": "1.4.0.0",
"Version": "1.5.0.0",
"FileName": "Totoro.Plugins.MediaDetection.Generic.dll"
},
{
Expand Down

0 comments on commit 494fd9d

Please sign in to comment.