Feature: support Jellyfin 10.9.0 (#315)

* update to 10.9.0

---------

Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
This commit is contained in:
Ridham Zalawadia
2024-05-12 10:27:40 -07:00
committed by GitHub
parent 9fdde8369b
commit bdfa585e84
6 changed files with 23 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
dotnet-version: '8.x'
- name: Setup Python
uses: actions/setup-python@v5

View File

@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Configurations>Debug;Release;Debug.Emby;Release.Emby</Configurations>
<Platforms>AnyCPU</Platforms>
@@ -20,6 +19,14 @@
<Product>MetaTube</Product>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Release'">
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug.Emby' or '$(Configuration)'=='Release.Emby'">
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug.Emby' or '$(Configuration)'=='Release.Emby'">
<DefineConstants>__EMBY__</DefineConstants>
</PropertyGroup>
@@ -29,8 +36,8 @@
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Release'">
<PackageReference Include="Jellyfin.Controller" Version="10.8.0"/>
<PackageReference Include="Jellyfin.Model" Version="10.8.0"/>
<PackageReference Include="Jellyfin.Controller" Version="10.9.0"/>
<PackageReference Include="Jellyfin.Model" Version="10.9.0"/>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug.Emby' or '$(Configuration)'=='Release.Emby'">

View File

@@ -13,6 +13,7 @@ using MovieInfo = MediaBrowser.Controller.Providers.MovieInfo;
using MediaBrowser.Model.Logging;
#else
using Jellyfin.Data.Enums;
using Microsoft.Extensions.Logging;
#endif
@@ -155,7 +156,11 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
result.AddPerson(new PersonInfo
{
Name = m.Director,
#if __EMBY__
Type = PersonType.Director
#else
Type = PersonKind.Director
#endif
});
// Add actors.
@@ -164,7 +169,11 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
result.AddPerson(new PersonInfo
{
Name = name,
#if __EMBY__
Type = PersonType.Actor,
#else
Type = PersonKind.Actor,
#endif
ImageUrl = await GetActorImageUrl(name, cancellationToken)
});
}

View File

@@ -44,7 +44,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.8.x)](https://jellyfin.org/)
[![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/)
_NOTE: This project will only support stable versions._

View File

@@ -44,7 +44,7 @@
## 平台
[![Jellyfin](https://img.shields.io/static/v1?color=%2300A4DC&style=for-the-badge&label=Jellyfin&logo=jellyfin&message=10.8.x)](https://jellyfin.org/)
[![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/)
_注意本项目仅支持 Jellyfin/Emby 稳定版。_

View File

@@ -15,7 +15,7 @@ def generate(filename, version):
return {
'checksum': md5sum(filename),
'changelog': 'Auto Released by Actions',
'targetAbi': '10.8.0.0',
'targetAbi': '10.9.0.0',
'sourceUrl': 'https://github.com/metatube-community/jellyfin-plugin-metatube/releases/download/'
f'v{version}/Jellyfin.MetaTube@v{version}.zip',
'timestamp': datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ'),