mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Feature: support Jellyfin 10.9.0 (#315)
* update to 10.9.0 --------- Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
This commit is contained in:
2
.github/workflows/dotnetcore.yml
vendored
2
.github/workflows/dotnetcore.yml
vendored
@@ -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
|
||||
|
||||
@@ -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'">
|
||||
|
||||
@@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ MetaTube Plugin for Jellyfin/Emby.
|
||||
|
||||
## Platforms
|
||||
|
||||
[](https://jellyfin.org/)
|
||||
[](https://jellyfin.org/)
|
||||
[](https://emby.media/)
|
||||
|
||||
_NOTE: This project will only support stable versions._
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
## 平台
|
||||
|
||||
[](https://jellyfin.org/)
|
||||
[](https://jellyfin.org/)
|
||||
[](https://emby.media/)
|
||||
|
||||
_注意:本项目仅支持 Jellyfin/Emby 稳定版。_
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user