Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f237153b7 | ||
|
|
58cb8f9674 | ||
|
|
4dfc5f1032 | ||
|
|
209738b401 | ||
|
|
663e7602f7 | ||
|
|
656e4e95ef | ||
|
|
61603f8927 | ||
|
|
5112a0a856 | ||
|
|
c516f0c287 | ||
|
|
c66cd64ad7 | ||
|
|
5194068352 | ||
|
|
d012d4c898 | ||
|
|
e7c2e2e5f7 | ||
|
|
df39cccb10 | ||
|
|
332c8153f9 | ||
|
|
3a6d176a37 | ||
|
|
13b3e0fe79 | ||
|
|
81511e6bd8 | ||
|
|
29db7e5909 | ||
|
|
7d2f72a314 | ||
|
|
37020283a9 | ||
|
|
c1ff89d694 | ||
|
|
fbf6995dc3 |
No files matched your search
@@ -13,10 +13,10 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup .NET 6.0
|
||||
- name: Setup .NET 8.0
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: Build project
|
||||
run: dotnet build --configuration Release ./src
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DIST_ARCHIVES_PATH: dist/kinopoisk
|
||||
MANIFEST_FILE: dist/manifest.json
|
||||
TARGET_ABI: 10.9.0
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup .NET 9.0
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: 9.0.x
|
||||
|
||||
- name: Determine version
|
||||
id: version
|
||||
run: |
|
||||
VERSION=""
|
||||
if [ -n "${{ github.event.inputs.version }}" ]; then
|
||||
VERSION="${{ github.event.inputs.version }}"
|
||||
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||
VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
else
|
||||
# Пытаемся получить версию из CHANGELOG.md
|
||||
if [ -f CHANGELOG.md ]; then
|
||||
CHANGELOG_VERSION=$(grep -E '^## \[' CHANGELOG.md | grep -v '## \[Unreleased\]' | head -1 | sed -E 's/^## \[v?([^]]+)\].*/\1/')
|
||||
if [ -n "$CHANGELOG_VERSION" ]; then
|
||||
VERSION=$CHANGELOG_VERSION
|
||||
fi
|
||||
fi
|
||||
# Если не нашли версию в CHANGELOG.md, пробуем git
|
||||
if [ -z "$VERSION" ]; then
|
||||
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
||||
if [ -n "$GIT_TAG" ]; then
|
||||
VERSION="${GIT_TAG#v}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Не удалось определить версию. Укажите версию вручную или создайте тег."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Extract changelog
|
||||
id: changelog
|
||||
run: |
|
||||
if [ -f CHANGELOG.md ]; then
|
||||
# Ищем номер строки с нашей версией
|
||||
LINE_NUM=$(grep -n "## \\[${{ env.VERSION }}\\]" CHANGELOG.md | cut -d: -f1)
|
||||
|
||||
if [ -n "$LINE_NUM" ]; then
|
||||
# Извлекаем контент от следующей строки до следующего заголовка ## [
|
||||
NEXT_HEADER_LINE=$(tail -n +$((LINE_NUM+1)) CHANGELOG.md | grep -n "## \\[" | head -1 | cut -d: -f1)
|
||||
|
||||
if [ -n "$NEXT_HEADER_LINE" ]; then
|
||||
# Есть следующий заголовок - извлекаем до него
|
||||
CHANGELOG=$(tail -n +$((LINE_NUM+1)) CHANGELOG.md | head -n $((NEXT_HEADER_LINE-1)))
|
||||
else
|
||||
# Нет следующего заголовка - извлекаем до конца файла
|
||||
CHANGELOG=$(tail -n +$((LINE_NUM+1)) CHANGELOG.md)
|
||||
fi
|
||||
|
||||
# Удаляем пустые строки в начале и конце
|
||||
CHANGELOG=$(echo "$CHANGELOG" | sed -e '1s/^[[:space:]]*//' -e '/./,$!d' | sed -e :a -e '/^\n*$/{$d;N;ba' -e '}')
|
||||
|
||||
# Если остались только пустые строки
|
||||
if [ -z "$(echo "$CHANGELOG" | tr -d '[:space:]')" ]; then
|
||||
CHANGELOG="New release"
|
||||
fi
|
||||
else
|
||||
CHANGELOG="New release"
|
||||
fi
|
||||
else
|
||||
CHANGELOG="New release"
|
||||
fi
|
||||
|
||||
echo "changelog<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build project
|
||||
run: dotnet build --configuration Release --property:Version=${VERSION} ./src
|
||||
|
||||
- name: Package release archive
|
||||
run: |
|
||||
RELEASE_FILENAME=jellyfin-plugin-kinopoisk_${VERSION}.zip
|
||||
RELEASE_FILE=${DIST_ARCHIVES_PATH}/${RELEASE_FILENAME}
|
||||
zip --junk-paths $RELEASE_FILE \
|
||||
./src/Jellyfin.Plugin.Kinopoisk/bin/Release/net9.0/Jellyfin.Plugin.Kinopoisk.dll \
|
||||
./src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net9.0/KinopoiskUnofficialInfo.ApiClient.dll
|
||||
echo "RELEASE_FILENAME=$RELEASE_FILENAME" >> $GITHUB_ENV
|
||||
echo "RELEASE_FILE=$RELEASE_FILE" >> $GITHUB_ENV
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: v${{ env.VERSION }}
|
||||
body: ${{ steps.changelog.outputs.changelog }}
|
||||
files: |
|
||||
${{ env.RELEASE_FILE }}
|
||||
|
||||
- name: Hashsum calculation
|
||||
id: hashsum
|
||||
run: |
|
||||
HASH=$(md5sum "${DIST_ARCHIVES_PATH}/jellyfin-plugin-kinopoisk_${VERSION}.zip" | cut -d' ' -f1)
|
||||
echo "HASH=$HASH" >> $GITHUB_ENV
|
||||
echo "hash=$HASH" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Update manifest
|
||||
id: update_manifest
|
||||
run: |
|
||||
CHANGELOG_JSON=$(echo -n "${{ steps.changelog.outputs.changelog }}" | jq -Rs .)
|
||||
# SOURCE_URL="${{ fromJSON(steps.create_release.outputs.assets)[0].browser_download_url }}" # Не работает, отдаёт временный урл
|
||||
SOURCE_URL="${{ github.server_url }}/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.RELEASE_FILENAME }}"
|
||||
|
||||
jq --arg VERSION "${{ env.VERSION }}" \
|
||||
--arg HASH "${{ env.HASH }}" \
|
||||
--argjson CHANGELOG "$CHANGELOG_JSON" \
|
||||
--arg TARGET_ABI "${{ env.TARGET_ABI }}" \
|
||||
--arg TIMESTAMP "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" \
|
||||
--arg SOURCE_URL "$SOURCE_URL" \
|
||||
'.[0].versions = [
|
||||
{
|
||||
"version": $VERSION,
|
||||
"checksum": $HASH,
|
||||
"changelog": $CHANGELOG,
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": $TARGET_ABI,
|
||||
"sourceUrl": $SOURCE_URL,
|
||||
"timestamp": $TIMESTAMP
|
||||
}
|
||||
] + .[0].versions' \
|
||||
"${MANIFEST_FILE}" > "${MANIFEST_FILE}.tmp"
|
||||
|
||||
mv "${MANIFEST_FILE}.tmp" "${MANIFEST_FILE}"
|
||||
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
# Настраиваем git
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "github-actions[bot]"
|
||||
|
||||
# Получаем имя текущей ветки
|
||||
CURRENT_BRANCH=${GITHUB_REF#refs/heads/}
|
||||
echo "Текущая ветка: $CURRENT_BRANCH"
|
||||
|
||||
# Проверяем, есть ли изменения в манифесте или архиве
|
||||
if git diff --quiet HEAD -- "${MANIFEST_FILE}"; then
|
||||
echo "ℹ️ Нет изменений для коммита"
|
||||
else
|
||||
# Добавляем измененные файлы
|
||||
git add "${MANIFEST_FILE}"
|
||||
|
||||
# Создаем коммит с [skip ci], чтобы не запускать workflow снова
|
||||
git commit -m "Added to manifest version ${{ env.VERSION }} [skip ci]"
|
||||
echo "✅ Изменения закоммичены"
|
||||
|
||||
# Пушим изменения в текущую ветку
|
||||
git push origin HEAD:$CURRENT_BRANCH
|
||||
echo "✅ Изменения запущены в ветку $CURRENT_BRANCH"
|
||||
fi
|
||||
@@ -0,0 +1,85 @@
|
||||
# Changelog
|
||||
|
||||
## [10.9.6.0]
|
||||
|
||||
Added YANDEX_DISK video source
|
||||
|
||||
## [10.9.5.0]
|
||||
|
||||
Fix staff to person kind matcher (by @bsv798)
|
||||
|
||||
## [10.9.0.0]
|
||||
|
||||
new release
|
||||
|
||||
## [10.8.9.3]
|
||||
|
||||
new release
|
||||
|
||||
## [10.8.9.2]
|
||||
|
||||
new release
|
||||
|
||||
## [10.8.9.1]
|
||||
|
||||
new release
|
||||
|
||||
## [10.7.5.6]
|
||||
|
||||
Update to .NET 7
|
||||
|
||||
## [10.7.5.4]
|
||||
|
||||
Search fixed in case of null premiere date
|
||||
|
||||
## [10.7.5.3]
|
||||
|
||||
Results parsing fixes due to upstream service changes (api 2.2)
|
||||
|
||||
## [10.7.5.2]
|
||||
|
||||
Results parsing fixes due to upstream service changes
|
||||
|
||||
## [10.7.5.1]
|
||||
|
||||
Results parsing fixes
|
||||
|
||||
## [10.7.5.0]
|
||||
|
||||
Short: Huge improvement in auto-identifying of movies. Rus: Значительно улучшено авто-привязка фильмов при добавлении в медиатеку. Пытаюсь найти идентификатор кинопоиска по паттерну kp-12345 или kp12345 в имени файла/папки. Пытаюсь найти единственное совпадение на кинопоиске по имени + году. Пытаюсь перебрать все совпадения по имени + сравнение IMDB ID.
|
||||
|
||||
## [10.7.0.5]
|
||||
|
||||
Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted
|
||||
|
||||
## [10.7.0.4]
|
||||
|
||||
Added person info, person image, trailers fetching
|
||||
|
||||
## [10.7.0.3]
|
||||
|
||||
Don't provide empty poster Added kinopoisk hyperlink in people info
|
||||
|
||||
## [10.7.0.2]
|
||||
|
||||
Fixed rating parsing
|
||||
|
||||
## [10.7.0.1]
|
||||
|
||||
Fixed some actor professions parsing
|
||||
|
||||
## [10.7.0.0]
|
||||
|
||||
Jellyfin v10.7 compat
|
||||
|
||||
## [10.6.0.2]
|
||||
|
||||
fix NRE in person provider
|
||||
|
||||
## [10.6.0.1]
|
||||
|
||||
new release
|
||||
|
||||
## [10.6.0.0]
|
||||
|
||||
new release
|
||||
@@ -8,6 +8,8 @@ Fetches metadata from https://www.kinopoisk.ru/. This site is popular in the Rus
|
||||
|
||||
После этого на вкладке Каталог найти "КиноПоиск" (раздел Метаданные) и установить.
|
||||
|
||||
Альтернатива для Emby - [luzmane/emby.kinopoisk.ru](https://github.com/luzmane/emby.kinopoisk.ru)
|
||||
|
||||
## Настройка
|
||||
|
||||
Параметры плагина искать в: Администрирование - Панель - Расширенное - Плагины - вкладка "Мои плагины" - КиноПоиск - "три точки" - Параметры
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+192
-159
@@ -4,168 +4,201 @@
|
||||
"guid": "0c136f8a-ff77-4f2b-ade5-13462cae6216",
|
||||
"name": "КиноПоиск",
|
||||
"overview": "Информация о фильмах и сериалах с КиноПоиска",
|
||||
"owner": "skrashevich",
|
||||
"owner": "LinFor & skrashevich",
|
||||
"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",
|
||||
"versions": [
|
||||
[
|
||||
{
|
||||
"version": "10.8.9.0",
|
||||
"checksum": "20ee4624c336696c1ff130044a20cdd4",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.8.8.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.0.zip",
|
||||
"timestamp": "2023-02-08T13:52:25Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.7",
|
||||
"checksum": "df1c6ea557e12c3d7d29ff96c1257b66",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.8.8.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.7.zip",
|
||||
"timestamp": "2023-02-08T13:12:54Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.6",
|
||||
"changelog": "Update to .NET 7\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.6.zip",
|
||||
"checksum": "60310678f450ca7f0da3811642ae2bc4",
|
||||
"timestamp": "2023-01-22T03:34:00Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.4",
|
||||
"changelog": "Search fixed in case of null premiere date\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.4.zip",
|
||||
"checksum": "2f48bd383e298da975e93a7f84fe3bc1",
|
||||
"timestamp": "2021-10-17T15:57:00Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.3",
|
||||
"changelog": "Results parsing fixes due to upstream service changes (api 2.2)\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.3.zip",
|
||||
"checksum": "43930ff3db6b6938dcbc23297c53c746",
|
||||
"timestamp": "2021-09-27T12:09:43Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.2",
|
||||
"changelog": "Results parsing fixes due to upstream service changes\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.2.zip",
|
||||
"checksum": "e35c1942fb8ceda1d351d7307174fab2",
|
||||
"timestamp": "2021-08-10T16:00:08Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.1",
|
||||
"changelog": "Results parsing fixes\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.1.zip",
|
||||
"checksum": "c41d06954e6c00d8b51f11ac11180cb3",
|
||||
"timestamp": "2021-06-22T09:27:10Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.0",
|
||||
"changelog": "Short: Huge improvement in auto-identifying of movies. Rus: Значительно улучшено авто-привязка фильмов при добавлении в медиатеку. Пытаюсь найти идентификатор кинопоиска по паттерну kp-12345 или kp12345 в имени файла/папки. Пытаюсь найти единственное совпадение на кинопоиске по имени + году. Пытаюсь перебрать все совпадения по имени + сравнение IMDB ID.\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.0.zip",
|
||||
"checksum": "ea7eabac0fc4d1891529616a16a02897",
|
||||
"timestamp": "2021-05-23T15:30:18Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.0.5",
|
||||
"changelog": "Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.5.zip",
|
||||
"checksum": "6bdb97ee1e862b0b5657f7b510040148",
|
||||
"timestamp": "2021-05-22T23:01:09Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.0.4",
|
||||
"changelog": "Added person info, person image, trailers fetching\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.4.zip",
|
||||
"checksum": "28d4972fe0f5e193a8b3051ce5240ffe",
|
||||
"timestamp": "2021-05-22T22:24:49Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.0.3",
|
||||
"changelog": "Don't provide empty poster Added kinopoisk hyperlink in people info\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.3.zip",
|
||||
"checksum": "d58cdb87e4e93b7ab1b22c14248841e2",
|
||||
"timestamp": "2021-05-21T16:00:03Z"
|
||||
},
|
||||
{
|
||||
"checksum": "8d77d5f4de0bdf0abbce76cf8e5a251d",
|
||||
"changelog": "Fixed rating parsing",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.7.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.2.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.7.0.2.zip",
|
||||
"timestamp": "2021-04-06 18:12:00",
|
||||
"version": "10.7.0.2"
|
||||
},
|
||||
{
|
||||
"checksum": "9051c982f7846af34249ed9969012c17",
|
||||
"changelog": "Fixed some actor professions parsing",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.7.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.7.0.1.zip",
|
||||
"timestamp": "2021-03-18 13:31:00",
|
||||
"version": "10.7.0.1"
|
||||
},
|
||||
{
|
||||
"checksum": "ec7cfeff6a88f2427057d1bb6fb150b6",
|
||||
"changelog": "Jellyfin v10.7 compat",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.7.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.7.0.0.zip",
|
||||
"timestamp": "2021-03-16 11:35:00",
|
||||
"version": "10.7.0.0"
|
||||
},
|
||||
{
|
||||
"checksum": "50674e215597995b96da17b49ee7ad62",
|
||||
"changelog": "fix NRE in person provider",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.6.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.2.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.6.0.2.zip",
|
||||
"timestamp": "2020-07-09 13:00:00",
|
||||
"version": "10.6.0.2"
|
||||
},
|
||||
{
|
||||
"checksum": "a877cde0df7d70266fdb9362b72884c1",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.6.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.6.0.1.zip",
|
||||
"timestamp": "2020-07-07 19:00:00",
|
||||
"version": "10.6.0.1"
|
||||
},
|
||||
{
|
||||
"checksum": "8f43d3943f5f60293c6fb0ccbe560096",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.6.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.0.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.6.0.0.zip",
|
||||
"timestamp": "2020-07-07 10:00:00",
|
||||
"version": "10.6.0.0"
|
||||
}
|
||||
]
|
||||
{
|
||||
"version": "10.9.5.0",
|
||||
"checksum": "bbc0989e1093054bc7aa12c8e99eca97",
|
||||
"changelog": "Fix staff to person kind matcher (by @bsv798)",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.9.0",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/releases/download/v10.9.5.0/jellyfin-plugin-kinopoisk_10.9.5.0.zip",
|
||||
"timestamp": "2026-01-15T15:54:38Z"
|
||||
},
|
||||
{
|
||||
"version": "10.9.0.0",
|
||||
"checksum": "46f29865d6ddb8e66f577ffd93cb8a55",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.9.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.9.0.0.zip",
|
||||
"timestamp": "2024-05-15T15:11:12Z"
|
||||
},
|
||||
{
|
||||
"version": "10.8.9.3",
|
||||
"checksum": "b884a366e1da7e826267e8f13a3c1a09",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.8.8.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.3.zip",
|
||||
"timestamp": "2023-06-14T22:56:46Z"
|
||||
},
|
||||
{
|
||||
"version": "10.8.9.2",
|
||||
"checksum": "8cbefa9f1aa03dc054d0d8a83f49eb6b",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.8.8.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.2.zip",
|
||||
"timestamp": "2023-02-08T16:42:11Z"
|
||||
},
|
||||
{
|
||||
"version": "10.8.9.1",
|
||||
"checksum": "d15934ff981be4d7df861cd35a862971",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.8.8.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.1.zip",
|
||||
"timestamp": "2023-02-08T16:10:12Z"
|
||||
},
|
||||
{
|
||||
"version": "10.8.9.1",
|
||||
"checksum": "3790c3375057977320a77fe004f7c17f",
|
||||
"changelog": "new release",
|
||||
"targetAbi": "10.8.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.1.zip",
|
||||
"timestamp": "2023-02-08T15:37:42Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.6",
|
||||
"changelog": "Update to .NET 7\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.6.zip",
|
||||
"checksum": "60310678f450ca7f0da3811642ae2bc4",
|
||||
"timestamp": "2023-01-22T03:34:00Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.4",
|
||||
"changelog": "Search fixed in case of null premiere date\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.4.zip",
|
||||
"checksum": "2f48bd383e298da975e93a7f84fe3bc1",
|
||||
"timestamp": "2021-10-17T15:57:00Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.3",
|
||||
"changelog": "Results parsing fixes due to upstream service changes (api 2.2)\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.3.zip",
|
||||
"checksum": "43930ff3db6b6938dcbc23297c53c746",
|
||||
"timestamp": "2021-09-27T12:09:43Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.2",
|
||||
"changelog": "Results parsing fixes due to upstream service changes\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.2.zip",
|
||||
"checksum": "e35c1942fb8ceda1d351d7307174fab2",
|
||||
"timestamp": "2021-08-10T16:00:08Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.1",
|
||||
"changelog": "Results parsing fixes\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.1.zip",
|
||||
"checksum": "c41d06954e6c00d8b51f11ac11180cb3",
|
||||
"timestamp": "2021-06-22T09:27:10Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.5.0",
|
||||
"changelog": "Short: Huge improvement in auto-identifying of movies. Rus: Значительно улучшено авто-привязка фильмов при добавлении в медиатеку. Пытаюсь найти идентификатор кинопоиска по паттерну kp-12345 или kp12345 в имени файла/папки. Пытаюсь найти единственное совпадение на кинопоиске по имени + году. Пытаюсь перебрать все совпадения по имени + сравнение IMDB ID.\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.5.0.zip",
|
||||
"checksum": "ea7eabac0fc4d1891529616a16a02897",
|
||||
"timestamp": "2021-05-23T15:30:18Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.0.5",
|
||||
"changelog": "Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.5.zip",
|
||||
"checksum": "6bdb97ee1e862b0b5657f7b510040148",
|
||||
"timestamp": "2021-05-22T23:01:09Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.0.4",
|
||||
"changelog": "Added person info, person image, trailers fetching\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.4.zip",
|
||||
"checksum": "28d4972fe0f5e193a8b3051ce5240ffe",
|
||||
"timestamp": "2021-05-22T22:24:49Z"
|
||||
},
|
||||
{
|
||||
"version": "10.7.0.3",
|
||||
"changelog": "Don't provide empty poster Added kinopoisk hyperlink in people info\n",
|
||||
"targetAbi": "10.7.0",
|
||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.7.0.3.zip",
|
||||
"checksum": "d58cdb87e4e93b7ab1b22c14248841e2",
|
||||
"timestamp": "2021-05-21T16:00:03Z"
|
||||
},
|
||||
{
|
||||
"checksum": "8d77d5f4de0bdf0abbce76cf8e5a251d",
|
||||
"changelog": "Fixed rating parsing",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.7.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.2.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.7.0.2.zip",
|
||||
"timestamp": "2021-04-06 18:12:00",
|
||||
"version": "10.7.0.2"
|
||||
},
|
||||
{
|
||||
"checksum": "9051c982f7846af34249ed9969012c17",
|
||||
"changelog": "Fixed some actor professions parsing",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.7.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.7.0.1.zip",
|
||||
"timestamp": "2021-03-18 13:31:00",
|
||||
"version": "10.7.0.1"
|
||||
},
|
||||
{
|
||||
"checksum": "ec7cfeff6a88f2427057d1bb6fb150b6",
|
||||
"changelog": "Jellyfin v10.7 compat",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.7.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.7.0.0.zip",
|
||||
"timestamp": "2021-03-16 11:35:00",
|
||||
"version": "10.7.0.0"
|
||||
},
|
||||
{
|
||||
"checksum": "50674e215597995b96da17b49ee7ad62",
|
||||
"changelog": "fix NRE in person provider",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.6.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.2.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.6.0.2.zip",
|
||||
"timestamp": "2020-07-09 13:00:00",
|
||||
"version": "10.6.0.2"
|
||||
},
|
||||
{
|
||||
"checksum": "a877cde0df7d70266fdb9362b72884c1",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.6.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.6.0.1.zip",
|
||||
"timestamp": "2020-07-07 19:00:00",
|
||||
"version": "10.6.0.1"
|
||||
},
|
||||
{
|
||||
"checksum": "8f43d3943f5f60293c6fb0ccbe560096",
|
||||
"changelog": "new release",
|
||||
"name": "КиноПоиск",
|
||||
"targetAbi": "10.6.0",
|
||||
"runtimes": "netframework,netcore",
|
||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.0.zip",
|
||||
"filename": "jellyfin-plugin-kinopoisk_10.6.0.0.zip",
|
||||
"timestamp": "2020-07-07 10:00:00",
|
||||
"version": "10.6.0.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
+43
-21
@@ -1,14 +1,35 @@
|
||||
#!/bin/bash
|
||||
VERSION="10.8.9.0"
|
||||
CHANGELOG="Update version to correspnding JellyFin. Bump deps."
|
||||
docker run -it --rm -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet restore ./src
|
||||
VERSION="10.9.0.0"
|
||||
CHANGELOG="Fix bugs"
|
||||
|
||||
docker run -it --rm -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet build --configuration Release ./src
|
||||
check_command() {
|
||||
if ! command -v $1 &> /dev/null
|
||||
then
|
||||
echo "Error: $1 could not be found. Please install it."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Check for required commands
|
||||
check_command gsed
|
||||
|
||||
brew link --overwrite dotnet@8
|
||||
export PATH="/usr/local/opt/dotnet@8/bin:$PATH"
|
||||
|
||||
find . -name project.assets.json -delete
|
||||
|
||||
gsed -i'' "s/version: .*/version: \"$VERSION\"/" src/Jellyfin.Plugin.Kinopoisk/build.yaml
|
||||
BUILDYAML=`head -$(grep -n "changelog: >" src/Jellyfin.Plugin.Kinopoisk/build.yaml | head -1 | cut -d: -f1) src/Jellyfin.Plugin.Kinopoisk/build.yaml`
|
||||
echo -e "$BUILDYAML\n $CHANGELOG" > src/Jellyfin.Plugin.Kinopoisk/build.yaml
|
||||
|
||||
dotnet restore ./src/Jellyfin.Plugin.Kinopoisk/
|
||||
dotnet build --configuration Release ./src/Jellyfin.Plugin.Kinopoisk/
|
||||
|
||||
RELEASEDIR="$(pwd)/dist/kinopoisk/kinopoisk_$VERSION"
|
||||
rm -rf "$RELEASEDIR" "$RELEASEDIR.zip"
|
||||
mkdir -p "$RELEASEDIR"
|
||||
cp "$(pwd)/src/Jellyfin.Plugin.Kinopoisk/bin/Release/net6.0/Jellyfin.Plugin.Kinopoisk.dll" "$RELEASEDIR/"
|
||||
cp "$(pwd)/src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net6.0/KinopoiskUnofficialInfo.ApiClient.dll" "$RELEASEDIR/"
|
||||
cp "$(pwd)/src/Jellyfin.Plugin.Kinopoisk/bin/Release/net8.0/Jellyfin.Plugin.Kinopoisk.dll" "$RELEASEDIR/"
|
||||
cp "$(pwd)/src/KinopoiskUnofficialInfo.ApiClient/bin/Release/net8.0/KinopoiskUnofficialInfo.ApiClient.dll" "$RELEASEDIR/"
|
||||
cat << EOF > "dist/kinopoisk/kinopoisk_$VERSION/meta.json"
|
||||
{
|
||||
"category": "Metadata",
|
||||
@@ -19,24 +40,25 @@ cat << EOF > "dist/kinopoisk/kinopoisk_$VERSION/meta.json"
|
||||
"name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a",
|
||||
"overview": "\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0444\u0438\u043b\u044c\u043c\u0430\u0445 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0430\u0445 \u0441 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a\u0430",
|
||||
"owner": "svk",
|
||||
"targetAbi": "10.8.8.0",
|
||||
"targetAbi": "10.9.0",
|
||||
"timestamp": "$(date -u "+%Y-%m-%dT%H:%M:%SZ")",
|
||||
"version": "$VERSION"
|
||||
}
|
||||
EOF
|
||||
zip -r "dist/kinopoisk/kinopoisk_$VERSION.zip" "dist/kinopoisk/kinopoisk_$VERSION"
|
||||
echo $( cd $RELEASEDIR; zip -j "../kinopoisk_$VERSION.zip" *)
|
||||
rm -rf "$RELEASEDIR"
|
||||
HASH=$(md5sum "$RELEASEDIR.zip" | cut -d' ' -f1)
|
||||
|
||||
HASH=$(md5sum "dist/kinopoisk/kinopoisk_$VERSION.zip" | cut -d' ' -f1)
|
||||
|
||||
jq --arg HASH "$HASH" --arg URL "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_$VERSION.zip" --arg TIMESTAMP "$(date -u "+%Y-%m-%dT%H:%M:%SZ")" --arg VERSION "$VERSION" '.[0].versions = [[{"version": $VERSION, "checksum": $HASH, "changelog": "new release", "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.8.8.0", "sourceUrl": $URL, "timestamp": $TIMESTAMP}] + (.[0].versions[0:])]' "$(pwd)/dist/manifest.json" > "$(pwd)/dist/manifest.json.tmp" && mv "$(pwd)/dist/manifest.json.tmp" "$(pwd)/dist/manifest.json"
|
||||
|
||||
gsed -i'' "s/version: .*/version: \"$VERSION\"/" src/Jellyfin.Plugin.Kinopoisk/build.yaml
|
||||
BUILDYAML=`head -$(grep -n "changelog: >" src/Jellyfin.Plugin.Kinopoisk/build.yaml | head -1 | cut -d: -f1) src/Jellyfin.Plugin.Kinopoisk/build.yaml`
|
||||
echo -e "$BUILDYAML\n\t$CHANGELOG" > src/Jellyfin.Plugin.Kinopoisk/build.yaml
|
||||
|
||||
#jprm repo add -u https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/ ./dist ./artifacts/*.zip
|
||||
rm ./artifacts/*
|
||||
git add "dist/kinopoisk/kinopoisk_$VERSION.zip" "dist/manifest.json" "publish.sh" && \
|
||||
jq --arg HASH "$HASH" --arg URL "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_$VERSION.zip" \
|
||||
--arg TIMESTAMP "$(date -u "+%Y-%m-%dT%H:%M:%SZ")" \
|
||||
--arg VERSION "$VERSION" \
|
||||
'.[0].versions |= [{"version": $VERSION, "checksum": $HASH, "changelog": "new release", "name": "\u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a", "targetAbi": "10.9.0", "sourceUrl": $URL, "timestamp": $TIMESTAMP}] + .' \
|
||||
"$(pwd)/dist/manifest.json" > "$(pwd)/dist/manifest.json.tmp" && \
|
||||
mv "$(pwd)/dist/manifest.json.tmp" "$(pwd)/dist/manifest.json"
|
||||
exit
|
||||
#jprm repo add -u https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/ ./dist ./artifacts/*.zip
|
||||
rm -rf ./artifacts/*
|
||||
git add "$RELEASEDIR.zip" "dist/manifest.json" "publish.sh" "src/Jellyfin.Plugin.Kinopoisk/build.yaml" && \
|
||||
git commit -m "version $VERSION" && \
|
||||
git tag "v$VERSION" && \
|
||||
git push --tags
|
||||
git tag -f "v$VERSION" #&& \
|
||||
git push --force && git push --tags --force
|
||||
@@ -1,13 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.2" />
|
||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
|
||||
|
||||
@@ -14,11 +14,7 @@ EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -26,51 +22,19 @@ Global
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Release|x64.Build.0 = Release|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{92F27832-191C-414F-A50D-5098D5C5C35C}.Release|x86.Build.0 = Release|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Release|x64.Build.0 = Release|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{440F7DCA-3815-4B72-8984-8630250801A5}.Release|x86.Build.0 = Release|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Release|x64.Build.0 = Release|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{9584F66B-8EAB-4CA8-AC55-E9503EA23CC9}.Release|x86.Build.0 = Release|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Release|x64.Build.0 = Release|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{0AB018D0-655E-48DF-B414-22EA61C926C9}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -9,6 +9,8 @@ using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Providers;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Extensions;
|
||||
|
||||
namespace Jellyfin.Plugin.Kinopoisk
|
||||
{
|
||||
@@ -237,7 +239,7 @@ namespace Jellyfin.Plugin.Kinopoisk
|
||||
{
|
||||
Name = src.NameRu,
|
||||
ImageUrl = src.PosterUrl,
|
||||
Role = src.ProfessionText ?? string.Empty,
|
||||
Role = src.ProfessionText ?? null,
|
||||
Type = src.ProfessionKey.ToPersonType()
|
||||
};
|
||||
if (string.IsNullOrWhiteSpace(res.Name))
|
||||
@@ -263,16 +265,18 @@ namespace Jellyfin.Plugin.Kinopoisk
|
||||
return res;
|
||||
}
|
||||
|
||||
public static string ToPersonType(this StaffResponseProfessionKey src)
|
||||
public static PersonKind ToPersonType(this StaffResponseProfessionKey src)
|
||||
{
|
||||
return src switch
|
||||
{
|
||||
StaffResponseProfessionKey.ACTOR => PersonType.Actor,
|
||||
StaffResponseProfessionKey.DIRECTOR => PersonType.Director,
|
||||
StaffResponseProfessionKey.WRITER => PersonType.Writer,
|
||||
StaffResponseProfessionKey.COMPOSER => PersonType.Composer,
|
||||
StaffResponseProfessionKey.PRODUCER or StaffResponseProfessionKey.PRODUCER_USSR => PersonType.Producer,
|
||||
_ => string.Empty,
|
||||
StaffResponseProfessionKey.ACTOR => PersonKind.Actor,
|
||||
StaffResponseProfessionKey.DIRECTOR => PersonKind.Director,
|
||||
StaffResponseProfessionKey.WRITER => PersonKind.Writer,
|
||||
StaffResponseProfessionKey.COMPOSER => PersonKind.Composer,
|
||||
StaffResponseProfessionKey.PRODUCER or StaffResponseProfessionKey.PRODUCER_USSR => PersonKind.Producer,
|
||||
StaffResponseProfessionKey.EDITOR => PersonKind.Editor,
|
||||
StaffResponseProfessionKey.TRANSLATOR => PersonKind.Translator,
|
||||
_ => PersonKind.Unknown,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -10,19 +10,12 @@
|
||||
<EmbeddedResource Include="Configuration\configPage.html" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.*">
|
||||
<IncludeAssets>compile</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Jellyfin.Model" Version="10.*">
|
||||
<IncludeAssets>compile</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0">
|
||||
<IncludeAssets>compile</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Text.Json" Version="7.*">
|
||||
<IncludeAssets>compile</IncludeAssets>
|
||||
</PackageReference>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Jellyfin.Data" Version="10.*-*" />
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.*-*" />
|
||||
<PackageReference Include="Jellyfin.Common" Version="10.*-*" />
|
||||
<PackageReference Include="Jellyfin.Model" Version="10.*-*" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using System.Net.Http;
|
||||
using Jellyfin.Plugin.Kinopoisk.ProviderIdResolvers;
|
||||
using KinopoiskUnofficialInfo.ApiClient;
|
||||
using MediaBrowser.Common.Plugins;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Plugins;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
@@ -15,7 +16,7 @@ namespace Jellyfin.Plugin.Kinopoisk
|
||||
/// </summary>
|
||||
public class KinopoiskPluginServiceRegistrator : IPluginServiceRegistrator
|
||||
{
|
||||
public void RegisterServices(IServiceCollection serviceCollection)
|
||||
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
||||
{
|
||||
serviceCollection.AddSingleton((sp) => new KinopoiskApiClient(
|
||||
Plugin.Instance.Configuration.ApiToken,
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
name: "КиноПоиск"
|
||||
guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216"
|
||||
imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png"
|
||||
version: "10.7.5.6"
|
||||
targetAbi: "10.8.8.0"
|
||||
framework: "net6.0"
|
||||
version: "10.9.0.0"
|
||||
targetAbi: "10.9.0"
|
||||
framework: "net8.0"
|
||||
owner: "svk"
|
||||
overview: "Информация о фильмах и сериалах с КиноПоиска"
|
||||
description: >
|
||||
@@ -17,4 +17,4 @@ artifacts:
|
||||
- "Jellyfin.Plugin.Kinopoisk.dll"
|
||||
- "KinopoiskUnofficialInfo.ApiClient.dll"
|
||||
changelog: >
|
||||
Search fixed in case of null premiere date
|
||||
Fix bugs
|
||||
+3
-3
@@ -1,14 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.2" />
|
||||
<PackageReference Include="Moq" Version="4.18.4" />
|
||||
<PackageReference Include="VCR.net" Version="0.1.3" />
|
||||
|
||||
@@ -3948,6 +3948,8 @@ namespace KinopoiskUnofficialInfo.ApiClient
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"UNKNOWN")]
|
||||
UNKNOWN = 2,
|
||||
|
||||
[System.Runtime.Serialization.EnumMember(Value = @"YANDEX_DISK")]
|
||||
YANDEX_DISK = 3,
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.11.1.0 (NJsonSchema v10.4.3.0 (Newtonsoft.Json v12.0.0.0))")]
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.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.Logging" Version="8.0.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
|
||||
<PackageReference Include="NSwag.MSBuild" Version="13.18.2">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
||||
Reference in new issue
Block a user