mirror of
https://github.com/IAmParadox27/jellyfin-plugin-media-bar.git
synced 2026-11-09 00:27:14 +01:00
Added support for 10.11.9
This commit is contained in:
1 parent
e246a616cd
commit
69ca89e385
6 files changed
+51
-4
No files matched your search
@@ -3,6 +3,7 @@ using System.Text.RegularExpressions;
|
||||
using Jellyfin.Extensions;
|
||||
using Jellyfin.Plugin.MediaBar.Attributes;
|
||||
using Jellyfin.Plugin.MediaBar.Configuration;
|
||||
using Jellyfin.Plugin.MediaBar.JellyfinVersionSpecific;
|
||||
using Jellyfin.Plugin.MediaBar.Model;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
@@ -29,7 +30,7 @@ namespace Jellyfin.Plugin.MediaBar.Helpers
|
||||
return payload.Contents;
|
||||
}
|
||||
|
||||
IEnumerable<Guid> allUserIds = userManager.UsersIds;
|
||||
IEnumerable<Guid> allUserIds = userManager.GetAllUserIds();
|
||||
|
||||
Playlist? playlist = null;
|
||||
Guid? userIdToUse = null;
|
||||
|
||||
@@ -34,10 +34,14 @@
|
||||
<None Include="JellyfinVersionSpecific/10.11.0/*.cs" />
|
||||
<Compile Remove="JellyfinVersionSpecific/10.11.0/*.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="!$(JellyfinVersion.StartsWith('10.11'))">
|
||||
<ItemGroup Condition="!$(JellyfinVersion.StartsWith('10.11')) OR ('$(JellyfinVersion)' == '10.11.9')">
|
||||
<None Include="JellyfinVersionSpecific/10.11/*.cs" />
|
||||
<Compile Remove="JellyfinVersionSpecific/10.11/*.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(JellyfinVersion)' != '10.11.9'">
|
||||
<None Include="JellyfinVersionSpecific/10.11.9/*.cs" />
|
||||
<Compile Remove="JellyfinVersionSpecific/10.11.9/*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Configuration\config.html" />
|
||||
@@ -51,9 +55,9 @@
|
||||
<None Include="..\..\slideshowpure.js" />
|
||||
<None Include="..\..\slideshowpure.css" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="Exists('C:\ProgramData\Jellyfin\Server_10_11\plugins\MediaBar')">
|
||||
<Exec Condition="'$(JellyfinVersion)' == '10.11.1'" Command="xcopy $(TargetDir) "C:\ProgramData\Jellyfin\Server_10_11\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" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -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.UserIds;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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.UserIds;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user