Feature: add support for Emby 4.9 (#564)

This commit is contained in:
Jason Lyu
2025-10-23 04:59:51 +08:00
committed by GitHub
parent bb9f0335a7
commit dd47c3e848
4 changed files with 16 additions and 8 deletions

View File

@@ -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'">

View File

@@ -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

View File

@@ -42,7 +42,7 @@ MetaTube Plugin for Jellyfin/Emby.
## Platforms
[![Jellyfin](https://img.shields.io/static/v1?color=%2300A4DC&style=for-the-badge&label=Jellyfin&logo=jellyfin&message=10.9.x)](https://jellyfin.org/)
[![Emby](https://img.shields.io/static/v1?color=%2352B54B&style=for-the-badge&label=Emby&logo=emby&message=4.8.x)](https://emby.media/)
[![Emby](https://img.shields.io/static/v1?color=%2352B54B&style=for-the-badge&label=Emby&logo=emby&message=4.9.x)](https://emby.media/)
_NOTE: This project will only support stable versions._

View File

@@ -42,7 +42,7 @@
## 平台
[![Jellyfin](https://img.shields.io/static/v1?color=%2300A4DC&style=for-the-badge&label=Jellyfin&logo=jellyfin&message=10.9.x)](https://jellyfin.org/)
[![Emby](https://img.shields.io/static/v1?color=%2352B54B&style=for-the-badge&label=Emby&logo=emby&message=4.8.x)](https://emby.media/)
[![Emby](https://img.shields.io/static/v1?color=%2352B54B&style=for-the-badge&label=Emby&logo=emby&message=4.9.x)](https://emby.media/)
_注意本项目仅支持 Jellyfin/Emby 稳定版。_