mirror of
https://github.com/IAmParadox27/jellyfin-plugin-media-bar.git
synced 2026-11-05 07:42:46 +01:00
Added 12.0 support to Media Bar
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
* Jellyfin Slideshow by M0RPH3US v4.0.6
|
||||
*/
|
||||
|
||||
#slides-container {
|
||||
margin-top: -50vw;
|
||||
}
|
||||
@@ -1,18 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<JellyfinVersion>10.11.2</JellyfinVersion>
|
||||
<JellyfinVersion>12.0.0</JellyfinVersion>
|
||||
<JellyfinNugetVersion Condition="!$(JellyfinVersion.StartsWith('10.11'))">$(JellyfinVersion)</JellyfinNugetVersion>
|
||||
<JellyfinNugetVersion Condition="$(JellyfinVersion.StartsWith('10.11'))">$(JellyfinVersion)</JellyfinNugetVersion>
|
||||
<JellyfinNugetVersion Condition="'$(JellyfinVersion)' == '10.11.1'">10.11.0</JellyfinNugetVersion>
|
||||
<JellyfinNugetVersion Condition="$(JellyfinVersion.StartsWith('10.11.0'))">10.11.0</JellyfinNugetVersion>
|
||||
<JellyfinNugetVersion Condition="'$(JellyfinVersion)' == '10.11.10'">10.11.9</JellyfinNugetVersion>
|
||||
<JellyfinNugetVersion Condition="$(JellyfinVersion.StartsWith('12.0.0'))">12.0.0-rc1</JellyfinNugetVersion>
|
||||
<TargetFramework Condition="$(JellyfinVersion.StartsWith('10.11'))">net9.0</TargetFramework>
|
||||
<TargetFramework Condition="$(JellyfinVersion.StartsWith('12.'))">net10.0</TargetFramework>
|
||||
<TargetFramework Condition="'$(JellyfinVersion)' == '10.10.7'">net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<Version>2.4.0.0</Version>
|
||||
<Version>3.0.0.0</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -43,6 +45,11 @@
|
||||
<None Include="JellyfinVersionSpecific/10.11.9/*.cs" />
|
||||
<Compile Remove="JellyfinVersionSpecific/10.11.9/*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="!$(JellyfinVersion.StartsWith('12.0'))">
|
||||
<None Include="JellyfinVersionSpecific/12.0/*.cs" />
|
||||
<Compile Remove="JellyfinVersionSpecific/12.0/*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="GenerateAssemblyMetadata_JellyfinVersion" BeforeTargets="BeforeCompile">
|
||||
<ItemGroup>
|
||||
@@ -70,10 +77,12 @@
|
||||
<None Include="..\logo.png" CopyToOutputDirectory="Always" />
|
||||
<None Include="..\..\slideshowpure.js" />
|
||||
<None Include="..\..\slideshowpure.css" />
|
||||
<None Include="..\..\slideshowpure.12.css" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="Exists('C:\ProgramData\Jellyfin\Server_10_11\plugins\MediaBar')">
|
||||
<Exec Condition="$(JellyfinVersion.StartsWith('12.0'))" Command="xcopy $(OutDir) "C:\ProgramData\Jellyfin\Server_12\plugins\MediaBar" /y" />
|
||||
<Exec Condition="$(JellyfinVersion.StartsWith('10.11'))" Command="xcopy $(TargetDir) "C:\ProgramData\Jellyfin\Server_10_11\plugins\MediaBar" /y" />
|
||||
<Exec Condition="'$(JellyfinVersion)' == '10.10.7'" Command="xcopy $(TargetDir) "C:\ProgramData\Jellyfin\Server_10_10_7\plugins\MediaBar" /y" />
|
||||
<Exec Condition="'$(JellyfinVersion)' == '10.10.7'" Command="xcopy $(TargetDir) "C:\ProgramData\Jellyfin\Server_10_10_7\plugins\MediaBar" /y" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using MediaBrowser.Model.Tasks;
|
||||
|
||||
namespace Jellyfin.Plugin.MediaBar.JellyfinVersionSpecific
|
||||
{
|
||||
public static class StartupServiceHelper
|
||||
{
|
||||
public static IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
|
||||
{
|
||||
yield return new TaskTriggerInfo()
|
||||
{
|
||||
Type = TaskTriggerInfoType.StartupTrigger
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using MediaBrowser.Controller.Library;
|
||||
|
||||
namespace Jellyfin.Plugin.MediaBar.JellyfinVersionSpecific
|
||||
{
|
||||
public static class UserHelper
|
||||
{
|
||||
public static IEnumerable<Guid> GetAllUserIds(this IUserManager userManager) => userManager.GetUsersIds();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user