Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
213ad13c69 |
No files matched your search
@@ -138,6 +138,7 @@ jobs:
|
|||||||
"version": $VERSION,
|
"version": $VERSION,
|
||||||
"checksum": $HASH,
|
"checksum": $HASH,
|
||||||
"changelog": $CHANGELOG,
|
"changelog": $CHANGELOG,
|
||||||
|
"name": "КиноПоиск",
|
||||||
"targetAbi": $TARGET_ABI,
|
"targetAbi": $TARGET_ABI,
|
||||||
"sourceUrl": $SOURCE_URL,
|
"sourceUrl": $SOURCE_URL,
|
||||||
"timestamp": $TIMESTAMP
|
"timestamp": $TIMESTAMP
|
||||||
|
|||||||
+1
-9
@@ -1,13 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [10.9.8.0]
|
|
||||||
|
|
||||||
Перенесён значимый код из форка уважаемого @VD42
|
|
||||||
|
|
||||||
## [10.9.7.0]
|
|
||||||
|
|
||||||
Fixed pluginId
|
|
||||||
|
|
||||||
## [10.9.6.0]
|
## [10.9.6.0]
|
||||||
|
|
||||||
Added YANDEX_DISK video source
|
Added YANDEX_DISK video source
|
||||||
@@ -90,4 +82,4 @@ new release
|
|||||||
|
|
||||||
## [10.6.0.0]
|
## [10.6.0.0]
|
||||||
|
|
||||||
new release
|
new release
|
||||||
Vendored
+19
-31
@@ -1,41 +1,18 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"category": "Metadata",
|
"category": "Metadata",
|
||||||
"guid": "33e6d249-648f-44cd-a9ce-497be06c08df",
|
"guid": "0c136f8a-ff77-4f2b-ade5-13462cae6216",
|
||||||
"name": "КиноПоиск",
|
"name": "КиноПоиск",
|
||||||
"overview": "Информация о фильмах и сериалах с КиноПоиска",
|
"overview": "Информация о фильмах и сериалах с КиноПоиска",
|
||||||
"owner": "LinFor & skrashevich",
|
"owner": "LinFor & skrashevich",
|
||||||
"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.9.7.0",
|
|
||||||
"checksum": "5d3719a7c8a2d6e4af4fca53f736392e",
|
|
||||||
"changelog": "Fixed pluginId",
|
|
||||||
"targetAbi": "10.9.0",
|
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/releases/download/v10.9.7.0/jellyfin-plugin-kinopoisk_10.9.7.0.zip",
|
|
||||||
"timestamp": "2026-01-15T16:59:09Z"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.9.6.0",
|
|
||||||
"checksum": "d7a156386b76865714eb149a41143b35",
|
|
||||||
"changelog": "Added YANDEX_DISK video source",
|
|
||||||
"targetAbi": "10.9.0",
|
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/releases/download/v10.9.6.0/jellyfin-plugin-kinopoisk_10.9.6.0.zip",
|
|
||||||
"timestamp": "2026-01-15T16:10:54Z"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.9.5.0",
|
|
||||||
"checksum": "bbc0989e1093054bc7aa12c8e99eca97",
|
|
||||||
"changelog": "Fix staff to person kind matcher (by @bsv798)",
|
|
||||||
"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",
|
"version": "10.9.0.0",
|
||||||
"checksum": "46f29865d6ddb8e66f577ffd93cb8a55",
|
"checksum": "46f29865d6ddb8e66f577ffd93cb8a55",
|
||||||
"changelog": "new release",
|
"changelog": "new release",
|
||||||
|
"name": "КиноПоиск",
|
||||||
"targetAbi": "10.9.0",
|
"targetAbi": "10.9.0",
|
||||||
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.9.0.0.zip",
|
"sourceUrl": "https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.9.0.0.zip",
|
||||||
"timestamp": "2024-05-15T15:11:12Z"
|
"timestamp": "2024-05-15T15:11:12Z"
|
||||||
@@ -44,6 +21,7 @@
|
|||||||
"version": "10.8.9.3",
|
"version": "10.8.9.3",
|
||||||
"checksum": "b884a366e1da7e826267e8f13a3c1a09",
|
"checksum": "b884a366e1da7e826267e8f13a3c1a09",
|
||||||
"changelog": "new release",
|
"changelog": "new release",
|
||||||
|
"name": "КиноПоиск",
|
||||||
"targetAbi": "10.8.8.0",
|
"targetAbi": "10.8.8.0",
|
||||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.3.zip",
|
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.3.zip",
|
||||||
"timestamp": "2023-06-14T22:56:46Z"
|
"timestamp": "2023-06-14T22:56:46Z"
|
||||||
@@ -52,6 +30,7 @@
|
|||||||
"version": "10.8.9.2",
|
"version": "10.8.9.2",
|
||||||
"checksum": "8cbefa9f1aa03dc054d0d8a83f49eb6b",
|
"checksum": "8cbefa9f1aa03dc054d0d8a83f49eb6b",
|
||||||
"changelog": "new release",
|
"changelog": "new release",
|
||||||
|
"name": "КиноПоиск",
|
||||||
"targetAbi": "10.8.8.0",
|
"targetAbi": "10.8.8.0",
|
||||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.2.zip",
|
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.2.zip",
|
||||||
"timestamp": "2023-02-08T16:42:11Z"
|
"timestamp": "2023-02-08T16:42:11Z"
|
||||||
@@ -60,10 +39,19 @@
|
|||||||
"version": "10.8.9.1",
|
"version": "10.8.9.1",
|
||||||
"checksum": "d15934ff981be4d7df861cd35a862971",
|
"checksum": "d15934ff981be4d7df861cd35a862971",
|
||||||
"changelog": "new release",
|
"changelog": "new release",
|
||||||
|
"name": "КиноПоиск",
|
||||||
"targetAbi": "10.8.8.0",
|
"targetAbi": "10.8.8.0",
|
||||||
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.1.zip",
|
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.1.zip",
|
||||||
"timestamp": "2023-02-08T16:10:12Z"
|
"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",
|
"version": "10.7.5.6",
|
||||||
"changelog": "Update to .NET 7\n",
|
"changelog": "Update to .NET 7\n",
|
||||||
@@ -144,7 +132,7 @@
|
|||||||
"runtimes": "netframework,netcore",
|
"runtimes": "netframework,netcore",
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.2.zip",
|
"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",
|
"filename": "jellyfin-plugin-kinopoisk_10.7.0.2.zip",
|
||||||
"timestamp": "2021-04-06T18:12:00",
|
"timestamp": "2021-04-06 18:12:00",
|
||||||
"version": "10.7.0.2"
|
"version": "10.7.0.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -155,7 +143,7 @@
|
|||||||
"runtimes": "netframework,netcore",
|
"runtimes": "netframework,netcore",
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.1.zip",
|
"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",
|
"filename": "jellyfin-plugin-kinopoisk_10.7.0.1.zip",
|
||||||
"timestamp": "2021-03-18T13:31:00",
|
"timestamp": "2021-03-18 13:31:00",
|
||||||
"version": "10.7.0.1"
|
"version": "10.7.0.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -166,7 +154,7 @@
|
|||||||
"runtimes": "netframework,netcore",
|
"runtimes": "netframework,netcore",
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.7.0.0.zip",
|
"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",
|
"filename": "jellyfin-plugin-kinopoisk_10.7.0.0.zip",
|
||||||
"timestamp": "2021-03-16T11:35:00",
|
"timestamp": "2021-03-16 11:35:00",
|
||||||
"version": "10.7.0.0"
|
"version": "10.7.0.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -177,7 +165,7 @@
|
|||||||
"runtimes": "netframework,netcore",
|
"runtimes": "netframework,netcore",
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.2.zip",
|
"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",
|
"filename": "jellyfin-plugin-kinopoisk_10.6.0.2.zip",
|
||||||
"timestamp": "2020-07-09T13:00:00",
|
"timestamp": "2020-07-09 13:00:00",
|
||||||
"version": "10.6.0.2"
|
"version": "10.6.0.2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -188,7 +176,7 @@
|
|||||||
"runtimes": "netframework,netcore",
|
"runtimes": "netframework,netcore",
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.1.zip",
|
"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",
|
"filename": "jellyfin-plugin-kinopoisk_10.6.0.1.zip",
|
||||||
"timestamp": "2020-07-07T19:00:00",
|
"timestamp": "2020-07-07 19:00:00",
|
||||||
"version": "10.6.0.1"
|
"version": "10.6.0.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -199,7 +187,7 @@
|
|||||||
"runtimes": "netframework,netcore",
|
"runtimes": "netframework,netcore",
|
||||||
"sourceUrl": "https://github.com/LinFor/jellyfin-plugin-kinopoisk/raw/master/dist/kinopoisk/jellyfin-plugin-kinopoisk_10.6.0.0.zip",
|
"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",
|
"filename": "jellyfin-plugin-kinopoisk_10.6.0.0.zip",
|
||||||
"timestamp": "2020-07-07T10:00:00",
|
"timestamp": "2020-07-07 10:00:00",
|
||||||
"version": "10.6.0.0"
|
"version": "10.6.0.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Executable
+64
@@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
VERSION="10.9.0.0"
|
||||||
|
CHANGELOG="Fix bugs"
|
||||||
|
|
||||||
|
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/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",
|
||||||
|
"changelog": "$CHANGELOG",
|
||||||
|
"description": "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0440\u0435\u0439\u0442\u0438\u043d\u0433, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f, \u0430\u043a\u0442\u0451\u0440\u043e\u0432, \u0442\u0440\u0435\u0439\u043b\u0435\u0440\u044b \u0438 \u0442.\u0434. \u0441 \u0441\u0430\u0439\u0442\u0430 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a. \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 ApiToken, \u0441\u043c. \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u0430. \u0414\u043b\u044f \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c id \u0444\u0438\u043b\u044c\u043c\u0430 \u0441 \u0441\u0430\u0439\u0442\u0430 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a \u0432 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 kp-12345 \u0438\u043b\u0438 kp12345. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. https://github.com/LinFor/jellyfin-plugin-kinopoisk/blob/master/README.md\n",
|
||||||
|
"guid": "0c136f8a-ff77-4f2b-ade5-13462cae6216",
|
||||||
|
"imageUrl": "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png",
|
||||||
|
"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.9.0",
|
||||||
|
"timestamp": "$(date -u "+%Y-%m-%dT%H:%M:%SZ")",
|
||||||
|
"version": "$VERSION"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
echo $( cd $RELEASEDIR; zip -j "../kinopoisk_$VERSION.zip" *)
|
||||||
|
rm -rf "$RELEASEDIR"
|
||||||
|
HASH=$(md5sum "$RELEASEDIR.zip" | cut -d' ' -f1)
|
||||||
|
|
||||||
|
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 -f "v$VERSION" #&& \
|
||||||
|
git push --force && git push --tags --force
|
||||||
@@ -101,8 +101,6 @@ namespace Jellyfin.Plugin.Kinopoisk
|
|||||||
dst.Name = src.GetLocalName();
|
dst.Name = src.GetLocalName();
|
||||||
dst.OriginalTitle = src.GetOriginalNameIfNotSame();
|
dst.OriginalTitle = src.GetOriginalNameIfNotSame();
|
||||||
dst.PremiereDate = src.GetPremiereDate();
|
dst.PremiereDate = src.GetPremiereDate();
|
||||||
if (1900 < src.Year)
|
|
||||||
dst.ProductionYear = src.Year;
|
|
||||||
if (!string.IsNullOrWhiteSpace(src.Slogan))
|
if (!string.IsNullOrWhiteSpace(src.Slogan))
|
||||||
dst.Tagline = src.Slogan;
|
dst.Tagline = src.Slogan;
|
||||||
dst.Overview = src.Description;
|
dst.Overview = src.Description;
|
||||||
@@ -272,13 +270,10 @@ namespace Jellyfin.Plugin.Kinopoisk
|
|||||||
return src switch
|
return src switch
|
||||||
{
|
{
|
||||||
StaffResponseProfessionKey.ACTOR => PersonKind.Actor,
|
StaffResponseProfessionKey.ACTOR => PersonKind.Actor,
|
||||||
StaffResponseProfessionKey.DIRECTOR
|
StaffResponseProfessionKey.DIRECTOR => PersonKind.Director,
|
||||||
or StaffResponseProfessionKey.VOICE_DIRECTOR
|
|
||||||
or StaffResponseProfessionKey.OPERATOR => PersonKind.Director,
|
|
||||||
StaffResponseProfessionKey.WRITER => PersonKind.Writer,
|
StaffResponseProfessionKey.WRITER => PersonKind.Writer,
|
||||||
StaffResponseProfessionKey.COMPOSER => PersonKind.Composer,
|
StaffResponseProfessionKey.COMPOSER => PersonKind.Composer,
|
||||||
StaffResponseProfessionKey.PRODUCER
|
StaffResponseProfessionKey.PRODUCER or StaffResponseProfessionKey.PRODUCER_USSR => PersonKind.Producer,
|
||||||
or StaffResponseProfessionKey.PRODUCER_USSR => PersonKind.Producer,
|
|
||||||
StaffResponseProfessionKey.EDITOR => PersonKind.Editor,
|
StaffResponseProfessionKey.EDITOR => PersonKind.Editor,
|
||||||
StaffResponseProfessionKey.TRANSLATOR => PersonKind.Translator,
|
StaffResponseProfessionKey.TRANSLATOR => PersonKind.Translator,
|
||||||
_ => PersonKind.Unknown,
|
_ => PersonKind.Unknown,
|
||||||
|
|||||||
@@ -8,10 +8,9 @@ namespace Jellyfin.Plugin.Kinopoisk
|
|||||||
{
|
{
|
||||||
public static class Constants
|
public static class Constants
|
||||||
{
|
{
|
||||||
public const string PluginName = "КиноПоиск";
|
|
||||||
public const string PluginDescription = "Информация о фильмах и сериалах с КиноПоиска";
|
|
||||||
public const string ProviderId = "kinopoisk";
|
public const string ProviderId = "kinopoisk";
|
||||||
public const string ProviderName = "КиноПоиск";
|
public const string ProviderName = "КиноПоиск";
|
||||||
|
public const string ProviderDescription = "Информация о фильмах и сериалах с КиноПоиска";
|
||||||
public const string ProviderMetadataLanguage = "ru";
|
public const string ProviderMetadataLanguage = "ru";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,9 +12,9 @@ namespace Jellyfin.Plugin.Kinopoisk
|
|||||||
{
|
{
|
||||||
public static Plugin Instance { get; private set; }
|
public static Plugin Instance { get; private set; }
|
||||||
|
|
||||||
public override string Name => Constants.PluginName;
|
public override string Name => Constants.ProviderName;
|
||||||
|
|
||||||
public override string Description => Constants.PluginDescription;
|
public override string Description => Constants.ProviderDescription;
|
||||||
|
|
||||||
public override Guid Id => Guid.Parse("33e6d249-648f-44cd-a9ce-497be06c08df");
|
public override Guid Id => Guid.Parse("33e6d249-648f-44cd-a9ce-497be06c08df");
|
||||||
|
|
||||||
|
|||||||
@@ -44,15 +44,13 @@ namespace Jellyfin.Plugin.Kinopoisk.ProviderIdResolvers
|
|||||||
var candidates = searchResult.Films.ToArray();
|
var candidates = searchResult.Films.ToArray();
|
||||||
_logger.LogDebug($"Received {candidates.Length} results, trying to filter and match...");
|
_logger.LogDebug($"Received {candidates.Length} results, trying to filter and match...");
|
||||||
|
|
||||||
var candidates_by_year = FilterByYear(info, candidates);
|
|
||||||
|
|
||||||
// Check if there are single candidate filtered by year
|
// Check if there are single candidate filtered by year
|
||||||
possibleResult = await TryResolveBySingleCandidateLeft(info, candidates_by_year, ct);
|
possibleResult = await TryResolveBySingleCandidateLeft(info, FilterByYear(info, candidates), ct);
|
||||||
if (possibleResult.IsSuccess)
|
if (possibleResult.IsSuccess)
|
||||||
return possibleResult;
|
return possibleResult;
|
||||||
|
|
||||||
// Try to resolve by ImdbId match filtered by year
|
// Try to resolve by ImdbId match filtered by year
|
||||||
possibleResult = await TryResolveByImdbMatch(info, candidates_by_year, ct);
|
possibleResult = await TryResolveByImdbMatch(info, FilterByYear(info, candidates), ct);
|
||||||
if (possibleResult.IsSuccess)
|
if (possibleResult.IsSuccess)
|
||||||
return possibleResult;
|
return possibleResult;
|
||||||
|
|
||||||
@@ -61,22 +59,6 @@ namespace Jellyfin.Plugin.Kinopoisk.ProviderIdResolvers
|
|||||||
if (possibleResult.IsSuccess)
|
if (possibleResult.IsSuccess)
|
||||||
return possibleResult;
|
return possibleResult;
|
||||||
|
|
||||||
// TODO: Maybe check type?
|
|
||||||
|
|
||||||
if (0 < candidates_by_year.Count)
|
|
||||||
{
|
|
||||||
var kinopoiskId = candidates_by_year.First().FilmId;
|
|
||||||
_logger.LogDebug($"All other checks failed, use first result by year, setting KinopoiskProviderId to {kinopoiskId} ({info.Name})");
|
|
||||||
return (true, kinopoiskId);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (0 < candidates.Length)
|
|
||||||
{
|
|
||||||
var kinopoiskId = candidates.First().FilmId;
|
|
||||||
_logger.LogDebug($"All other checks failed, use first result, setting KinopoiskProviderId to {kinopoiskId} ({info.Name})");
|
|
||||||
return (true, kinopoiskId);
|
|
||||||
}
|
|
||||||
|
|
||||||
_logger.LogDebug($"Suitable result not found");
|
_logger.LogDebug($"Suitable result not found");
|
||||||
return (false, 0);
|
return (false, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: "КиноПоиск"
|
||||||
|
guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216"
|
||||||
|
imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png"
|
||||||
|
version: "10.9.0.0"
|
||||||
|
targetAbi: "10.9.0"
|
||||||
|
framework: "net8.0"
|
||||||
|
owner: "svk"
|
||||||
|
overview: "Информация о фильмах и сериалах с КиноПоиска"
|
||||||
|
description: >
|
||||||
|
Загружает рейтинг, описания, актёров, трейлеры и т.д. с сайта КиноПоиск.
|
||||||
|
Может потребоваться зарегистрировать свой ApiToken, см. информацию в параметрах плагина.
|
||||||
|
Для точного распознавания рекомендуется указывать id фильма с сайта КиноПоиск в имени файла в формате kp-12345 или kp12345.
|
||||||
|
Подробнее см. https://github.com/LinFor/jellyfin-plugin-kinopoisk/blob/master/README.md
|
||||||
|
category: "Metadata"
|
||||||
|
artifacts:
|
||||||
|
- "Jellyfin.Plugin.Kinopoisk.dll"
|
||||||
|
- "KinopoiskUnofficialInfo.ApiClient.dll"
|
||||||
|
changelog: >
|
||||||
|
Fix bugs
|
||||||
Reference in new issue
Block a user