Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
923a12f8b6 | ||
|
|
6461003435 | ||
|
|
ed1836703a | ||
|
|
0743f7d2e7 | ||
|
|
048adc1170 | ||
|
|
096e22156c | ||
|
|
217d2efef8 | ||
|
|
c00f8dd712 | ||
|
|
56ee78af00 |
No files matched your search
@@ -9,3 +9,11 @@ updates:
|
|||||||
directory: "/src" # Location of package manifests
|
directory: "/src" # Location of package manifests
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "Jellyfin.*"
|
||||||
|
update-types:
|
||||||
|
- version-update:semver-major
|
||||||
|
- version-update:semver-minor
|
||||||
|
- dependency-name: "Microsoft.*"
|
||||||
|
update-types:
|
||||||
|
- version-update:semver-major
|
||||||
@@ -11,15 +11,23 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup .NET 8.0
|
- name: Setup .NET 9.0
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 9.0.x
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: dotnet build --configuration Release ./src
|
run: dotnet build --configuration Release --property:Version=1.0.0.0 ./src
|
||||||
|
|
||||||
- name: Test project
|
- name: Test project
|
||||||
run: dotnet test --configuration Release ./src
|
run: dotnet test --configuration Release ./src
|
||||||
|
|
||||||
|
- name: Publish artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: my-artifact
|
||||||
|
path: |
|
||||||
|
./src/Jellyfin.Plugin.Kinopoisk/bin/Release/net9.0/Jellyfin.Plugin.Kinopoisk.dll
|
||||||
|
./src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net9.0/KinopoiskUnofficialInfo.ApiClient.dll
|
||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
DIST_ARCHIVES_PATH: dist/kinopoisk
|
DIST_ARCHIVES_PATH: dist/kinopoisk
|
||||||
MANIFEST_FILE: dist/manifest.json
|
MANIFEST_FILE: dist/manifest.json
|
||||||
TARGET_ABI: 10.9.0
|
TARGET_ABI: 10.10.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [10.10.3.0]
|
||||||
|
|
||||||
|
Исправлена совместимость с 10.10.*
|
||||||
|
|
||||||
|
## [10.10.2.0]
|
||||||
|
|
||||||
|
Исправлена совместимость с 10.11.(0-4)
|
||||||
|
|
||||||
|
## [10.10.1.0]
|
||||||
|
|
||||||
|
Реализован IExternalUrlProvider (ссылки на кинопоиск)
|
||||||
|
|
||||||
|
## [10.9.8.0]
|
||||||
|
|
||||||
|
Перенесён значимый код из форка уважаемого @VD42
|
||||||
|
|
||||||
## [10.9.7.0]
|
## [10.9.7.0]
|
||||||
|
|
||||||
Fixed pluginId
|
Fixed pluginId
|
||||||
|
|||||||
Vendored
+24
@@ -8,6 +8,30 @@
|
|||||||
"description": "Загружает рейтинг, описания, актёров, трейлеры и т.д. с сайта КиноПоиск. Может потребоваться зарегистрировать свой ApiToken, см. информацию в параметрах плагина. Для точного распознавания рекомендуется указывать id фильма с сайта КиноПоиск в имени файла в формате kp-12345 или kp12345. Подробнее см. https://github.com/LinFor/jellyfin-plugin-kinopoisk/blob/master/README.md\n",
|
"description": "Загружает рейтинг, описания, актёров, трейлеры и т.д. с сайта КиноПоиск. Может потребоваться зарегистрировать свой ApiToken, см. информацию в параметрах плагина. Для точного распознавания рекомендуется указывать id фильма с сайта КиноПоиск в имени файла в формате kp-12345 или kp12345. Подробнее см. https://github.com/LinFor/jellyfin-plugin-kinopoisk/blob/master/README.md\n",
|
||||||
"imageUrl": "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png",
|
"imageUrl": "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png",
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"version": "10.10.2.0",
|
||||||
|
"checksum": "4cd0b8b5fe5db078b74eb472146773ac",
|
||||||
|
"changelog": "Исправлена совместимость с 10.11.(0-4)",
|
||||||
|
"targetAbi": "10.10.0",
|
||||||
|
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/releases/download/v10.10.2.0/jellyfin-plugin-kinopoisk_10.10.2.0.zip",
|
||||||
|
"timestamp": "2026-02-04T09:24:27Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "10.10.1.0",
|
||||||
|
"checksum": "6607f466b207e2e980f142e317ffb989",
|
||||||
|
"changelog": "Реализован IExternalUrlProvider (ссылки на кинопоиск)",
|
||||||
|
"targetAbi": "10.10.0",
|
||||||
|
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/releases/download/v10.10.1.0/jellyfin-plugin-kinopoisk_10.10.1.0.zip",
|
||||||
|
"timestamp": "2026-01-15T21:37:12Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "10.9.8.0",
|
||||||
|
"checksum": "8ce2e57a7411c393a5ac23d31f50265a",
|
||||||
|
"changelog": "Перенесён значимый код из форка уважаемого @VD42",
|
||||||
|
"targetAbi": "10.9.0",
|
||||||
|
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/releases/download/v10.9.8.0/jellyfin-plugin-kinopoisk_10.9.8.0.zip",
|
||||||
|
"timestamp": "2026-01-15T17:48:23Z"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "10.9.7.0",
|
"version": "10.9.7.0",
|
||||||
"checksum": "5d3719a7c8a2d6e4af4fca53f736392e",
|
"checksum": "5d3719a7c8a2d6e4af4fca53f736392e",
|
||||||
|
|||||||
Whitespace-only changes.
@@ -11,10 +11,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Jellyfin.Data" Version="10.*-*" />
|
<PackageReference Include="Jellyfin.Data" Version="10.10.0.*" />
|
||||||
<PackageReference Include="Jellyfin.Controller" Version="10.*-*" />
|
<PackageReference Include="Jellyfin.Controller" Version="10.10.0.*" />
|
||||||
<PackageReference Include="Jellyfin.Common" Version="10.*-*" />
|
<PackageReference Include="Jellyfin.Common" Version="10.10.0.*" />
|
||||||
<PackageReference Include="Jellyfin.Model" Version="10.*-*" />
|
<PackageReference Include="Jellyfin.Model" Version="10.10.0.*" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ namespace Jellyfin.Plugin.Kinopoisk.Model
|
|||||||
|
|
||||||
public string Key => Constants.ProviderId;
|
public string Key => Constants.ProviderId;
|
||||||
|
|
||||||
public string UrlFormatString => "https://www.kinopoisk.ru/film/{0}";
|
public string UrlFormatString => null;
|
||||||
|
|
||||||
public ExternalIdMediaType? Type => null;
|
public ExternalIdMediaType? Type => null;
|
||||||
|
|
||||||
public bool Supports(IHasProviderIds item)
|
public bool Supports(IHasProviderIds item)
|
||||||
{
|
{
|
||||||
return item is Movie || item is Series;
|
return item is Movie || item is Series || item is Person;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using MediaBrowser.Controller.Entities;
|
||||||
|
using MediaBrowser.Controller.Entities.Movies;
|
||||||
|
using MediaBrowser.Controller.Entities.TV;
|
||||||
|
using MediaBrowser.Controller.Providers;
|
||||||
|
using MediaBrowser.Model.Entities;
|
||||||
|
using MediaBrowser.Model.Providers;
|
||||||
|
|
||||||
|
namespace Jellyfin.Plugin.Kinopoisk.Model
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// External URLs for Kinopoisk.
|
||||||
|
/// </summary>
|
||||||
|
public class KinopoiskExternalUrlProvider : IExternalUrlProvider
|
||||||
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public string Name => Constants.ProviderName;
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public IEnumerable<string> GetExternalUrls(BaseItem item)
|
||||||
|
{
|
||||||
|
var baseUrl = "https://www.kinopoisk.ru/";
|
||||||
|
if (item.TryGetProviderId(Constants.ProviderId, out var externalId))
|
||||||
|
{
|
||||||
|
if (item is Person)
|
||||||
|
{
|
||||||
|
yield return baseUrl + $"name/{externalId}/";
|
||||||
|
}
|
||||||
|
else if (item is Movie)
|
||||||
|
{
|
||||||
|
yield return baseUrl + $"film/{externalId}/";
|
||||||
|
}
|
||||||
|
else if (item is Series)
|
||||||
|
{
|
||||||
|
yield return baseUrl + $"series/{externalId}/";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
using MediaBrowser.Controller.Entities;
|
|
||||||
using MediaBrowser.Controller.Providers;
|
|
||||||
using MediaBrowser.Model.Entities;
|
|
||||||
using MediaBrowser.Model.Providers;
|
|
||||||
|
|
||||||
namespace Jellyfin.Plugin.Kinopoisk.Model
|
|
||||||
{
|
|
||||||
public class KinopoiskPersonExternalId : IExternalId
|
|
||||||
{
|
|
||||||
public string ProviderName => Constants.ProviderName;
|
|
||||||
|
|
||||||
public string Key => Constants.ProviderId;
|
|
||||||
|
|
||||||
public string UrlFormatString => "https://www.kinopoisk.ru/name/{0}";
|
|
||||||
|
|
||||||
public ExternalIdMediaType? Type => null;
|
|
||||||
|
|
||||||
public bool Supports(IHasProviderIds item)
|
|
||||||
{
|
|
||||||
return item is Person;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
|
||||||
<PackageReference Include="NSwag.MSBuild" Version="13.18.2">
|
<PackageReference Include="NSwag.MSBuild" Version="13.18.2">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
|||||||
Reference in new issue
Block a user