Compare commits

...
9 Commits
Author SHA1 Message Date
Sergey Krashevich 332c8153f9 version 10.8.9.2 2023-06-15 00:30:19 +03:00
dependabot[bot] 3a6d176a37 Bump Microsoft.NET.Test.Sdk from 16.5.0 to 17.5.0 in /src
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.5.0 to 17.5.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v16.5.0...v17.5.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 11:44:35 +03:00
Sergey Krashevich 13b3e0fe79 version 10.8.9.2 2023-02-08 19:42:11 +03:00
Sergey Krashevich 81511e6bd8 version 10.8.9.1 2023-02-08 19:10:12 +03:00
Sergey Krashevich 29db7e5909 version 10.8.9.1 2023-02-08 18:49:25 +03:00
Sergey Krashevich 7d2f72a314 version 10.8.9.1 2023-02-08 18:25:03 +03:00
Sergey Krashevich 37020283a9 version 10.8.9.1 2023-02-08 17:33:37 +03:00
Sergey Krashevich c1ff89d694 Update manifest.json 2023-02-08 17:22:44 +03:00
Sergey Krashevich fbf6995dc3 Update README.md 2023-02-08 17:01:55 +03:00
8 changed files with 58 additions and 32 deletions

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ Fetches metadata from https://www.kinopoisk.ru/. This site is popular in the Rus
## Установка
Администрирование - Панель - Расширенное - Плагины - вкладка Репозитории - добавить адрес https://raw.githubusercontent.com/LinFor/jellyfin-plugin-kinopoisk/master/dist/manifest.json.
Администрирование - Панель - Расширенное - Плагины - вкладка Репозитории - добавить адрес https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/manifest.json.
После этого на вкладке Каталог найти "КиноПоиск" (раздел Метаданные) и установить.
Binary file not shown.
Binary file not shown.
+25 -10
View File
@@ -8,24 +8,40 @@
"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",
"version": "10.8.9.2",
"checksum": "6077f09be86cf20f0788881100cdfa7c",
"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"
"sourceUrl": "https://raw.githubusercontent.com/skrashevich/jellyfin-plugin-kinopoisk/master/dist/kinopoisk/kinopoisk_10.8.9.2.zip",
"timestamp": "2023-06-14T21:30:19Z"
},
{
"version": "10.7.5.7",
"checksum": "df1c6ea557e12c3d7d29ff96c1257b66",
"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.7.5.7.zip",
"timestamp": "2023-02-08T13:12:54Z"
"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",
@@ -166,6 +182,5 @@
"version": "10.6.0.0"
}
]
]
}
]
+28 -17
View File
@@ -1,11 +1,21 @@
#!/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.8.9.2"
CHANGELOG="Fix bugs. Update version to correspnding JellyFin. Bump deps."
docker run -it --rm -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet build --configuration Release ./src
brew link --overwrite dotnet@6
export PATH="/usr/local/opt/dotnet@6/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
docker run --rm --network host -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 dotnet restore ./src/Jellyfin.Plugin.Kinopoisk/
docker run --rm --network host -v $(pwd):/src -w /src bitnami/dotnet-sdk:6 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/"
@@ -19,24 +29,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.8.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
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}] + .' \
"$(pwd)/dist/manifest.json" > "$(pwd)/dist/manifest.json.tmp" && \
mv "$(pwd)/dist/manifest.json.tmp" "$(pwd)/dist/manifest.json"
#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" && \
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
@@ -7,7 +7,7 @@
</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" />
+2 -2
View File
@@ -2,7 +2,7 @@
name: "КиноПоиск"
guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216"
imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png"
version: "10.7.5.6"
version: "10.8.9.2"
targetAbi: "10.8.8.0"
framework: "net6.0"
owner: "svk"
@@ -17,4 +17,4 @@ artifacts:
- "Jellyfin.Plugin.Kinopoisk.dll"
- "KinopoiskUnofficialInfo.ApiClient.dll"
changelog: >
Search fixed in case of null premiere date
Fix bugs. Update version to correspnding JellyFin. Bump deps.
@@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<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" />