mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Feature: add support for Emby 4.9 (#564)
This commit is contained in:
@@ -17,11 +17,7 @@
|
||||
<PackageId>MetaTube</PackageId>
|
||||
<Company>MetaTube</Company>
|
||||
<Product>MetaTube</Product>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Release'">net8.0</TargetFramework>
|
||||
<TargetFramework Condition="'$(Configuration)'=='Debug.Emby' or '$(Configuration)'=='Release.Emby'">net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Debug.Emby' or '$(Configuration)'=='Release.Emby'">
|
||||
@@ -38,7 +34,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(Configuration)'=='Debug.Emby' or '$(Configuration)'=='Release.Emby'">
|
||||
<PackageReference Include="MediaBrowser.Server.Core" Version="4.8.0.80"/>
|
||||
<PackageReference Include="MediaBrowser.Server.Core" Version="4.9.1.80"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Release'">
|
||||
|
||||
@@ -2,6 +2,7 @@ using Jellyfin.Plugin.MetaTube.Configuration;
|
||||
#if __EMBY__
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
|
||||
#else
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -10,7 +11,11 @@ using Jellyfin.Plugin.MetaTube.Extensions;
|
||||
|
||||
namespace Jellyfin.Plugin.MetaTube.Providers;
|
||||
|
||||
#if __EMBY__
|
||||
public abstract class BaseProvider : IHasSupportedExternalIdentifiers
|
||||
#else
|
||||
public abstract class BaseProvider
|
||||
#endif
|
||||
{
|
||||
protected readonly ILogger Logger;
|
||||
|
||||
@@ -25,6 +30,13 @@ public abstract class BaseProvider
|
||||
|
||||
public virtual string Name => Plugin.Instance.Name;
|
||||
|
||||
#if __EMBY__
|
||||
public string[] GetSupportedExternalIdentifiers()
|
||||
{
|
||||
return [Plugin.Instance.Name];
|
||||
}
|
||||
#endif
|
||||
|
||||
#if __EMBY__
|
||||
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||
#else
|
||||
|
||||
@@ -42,7 +42,7 @@ MetaTube Plugin for Jellyfin/Emby.
|
||||
## Platforms
|
||||
|
||||
[](https://jellyfin.org/)
|
||||
[](https://emby.media/)
|
||||
[](https://emby.media/)
|
||||
|
||||
_NOTE: This project will only support stable versions._
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
## 平台
|
||||
|
||||
[](https://jellyfin.org/)
|
||||
[](https://emby.media/)
|
||||
[](https://emby.media/)
|
||||
|
||||
_注意:本项目仅支持 Jellyfin/Emby 稳定版。_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user